试试使用curl函数库:
手册例子::
<?php
// create a new curl resource
$ch = curl_init();// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);// grab URL and pass it to the browser
curl_exec($ch);// close curl resource, and free up system resources
curl_close($ch);
?>

解决方案 »

  1.   

    我是不是要重新编译php呢,还是下个安装包安装了就行呢。
      

  2.   

    http://www.zeali.net/blog/entry.php?id=128http://www.zeali.net/blog/entry.php?id=130
      

  3.   

    楼上地址不错。楼主如果远程url得不到内容,应该是因为那个网站首页是经过跳转的吧?那你分析跳转的地址好了。
      

  4.   

    也不是经过跳转的,参见网址:http://www.zhenhuakeji.com/newEbiz1/EbizPortalFG/portal/html/index.html
      

  5.   

    http://www.zeali.net/blog/entry.php?id=128http://www.zeali.net/blog/entry.php?id=130
    讲得太笼统,看不太懂。
      

  6.   

    是用fsockopen 模拟POST 的,郁闷,用CURL也一样啊