原来的远程连接都可以吗?
如果也不可以,可以在httpd.conf加上:
listen yourRemoteIpAddress:80
listen 127.0.0.1:80
#port:80 这行要去掉

解决方案 »

  1.   

    我的问题是:
    <?php$ch = curl_init ("http://www.csdn.net/");
    $fp = fopen ("example_homepage.txt", "w");curl_setopt ($ch, CURLOPT_FILE, $fp);
    curl_setopt ($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_TIMEOUT,200);curl_exec ($ch);
    curl_close ($ch);
    fclose ($fp);
    ?>example_homepage.txt中没有任何内容
    但是$ch = curl_init ("http://192.168.XX.XX/XXX.php");
    那么example_homepage.txt就将保存php返回的内容晕呀
      

  2.   

    要保存php返回的内容不用这么做吧?curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    $return = curl_exec($ch);把$return保存起来不就行了?