z.php
$ar = array('name' => '你想', 'pass' => 'mmmm');
foreach($ar as $key => $value){
$params.= '&'.$key . '=' . $value;
}
$header="POST /test/zz.php HTTP/1.1\r\n";
$header.="Host:\r\n";
$header.="Referer: /test/zz.php \r\n";
$header.="Content-Type: application/x-www-form-urlencoded\r\n";
$header.="Content-Length: ".strlen($params)."\r\n";
$header.="Connection: Close\r\n\r\n";
$header.=$params;
$fp=fsockopen('localhost','80');
fputs($fp,$header);
怎么不跳到zz.php去?
$ar = array('name' => '你想', 'pass' => 'mmmm');
foreach($ar as $key => $value){
$params.= '&'.$key . '=' . $value;
}
$header="POST /test/zz.php HTTP/1.1\r\n";
$header.="Host:\r\n";
$header.="Referer: /test/zz.php \r\n";
$header.="Content-Type: application/x-www-form-urlencoded\r\n";
$header.="Content-Length: ".strlen($params)."\r\n";
$header.="Connection: Close\r\n\r\n";
$header.=$params;
$fp=fsockopen('localhost','80');
fputs($fp,$header);
怎么不跳到zz.php去?
解决方案 »
- mysql Inner Join表ON 字段为空时怎么显示数据?谢谢!
- mysql导出文件问题?请高手指点!!!
- include_once"./include/a.php" 和include_once". . /include/a.php"有什么区别???
- 关于web前端传参数给后台的问题
- Googel 地图 API 的 KEY 怎么申请?
- 请问高手,这是PHP是什么加密样式的!
- 寻求研究sns的朋友!!
- 微信在线支付PHP版源码
- 如何循环采集接口数据信息?
- thinkphp关于图片路径问题
- 想在两个web之间传递数据,不要用get,php的HttpRequest类有高手用过吗?
- linux服务器下装了一个PHP程序,出现了下面的问题
$url = 'zz.php'
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 60); // times out
curl_setopt($ch, CURLOPT_POSTFIELDS, $XPost); // add POST fields
$result = curl_exec($ch);lz可以试试这个