php和ASP网站间如何通信? 你可以把相关的数据整合成 XML或者json格式,post过去 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 file_get_contents ( string filename [, bool use_include_path [, resource context [, int offset [, int maxlen]]]] )curl fsockopen ( string target [, int port [, int &errno [, string &errstr [, float timeout]]]] ) 正解,以前用的一个函数,具体的参考手册fsockopen function getdata($ip,$condition,$url){ $req=$condition; $header .= "POST $url HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ($ip,80, $errno, $errstr,30); if(!$fp){ _log('--ERROR--'.$ip.' can not open'); }else{ while (!feof($fp)) { fputs ($fp, $header . $req); $res = fgets ($fp, 204800); } } fclose ($fp); return $res;} 书上说的有一段话很迷糊,都不知道在说什么 The specified URL cannot be found. PHP6会出多线程吗? mysql "desc 表名" 的结果怎么调用? 在input里面输入数字后播放相应的声音如何做? 从数据库读出来的长文章怎么分页? Sandy&Mandy小美女求助热心GGJJ们帮忙! 如何编写qq秀(或Avatar)的代码? 急急急急急急!!在线等待!请问给别人做一个宣传网站(静态的html),怎么收费??? 我快死了,快救我! WIN2003配置PHP,apache无法启动 这种情况下我该如何生成网页?
file_get_contents ( string filename [, bool use_include_path [, resource context [, int offset [, int maxlen]]]] )curl fsockopen ( string target [, int port [, int &errno [, string &errstr [, float timeout]]]] )
$req=$condition;
$header .= "POST $url HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen ($ip,80, $errno, $errstr,30);
if(!$fp){
_log('--ERROR--'.$ip.' can not open');
}else{
while (!feof($fp)) {
fputs ($fp, $header . $req);
$res = fgets ($fp, 204800);
}
}
fclose ($fp); return $res;}