我的英文又不好,向他们说半天说不清楚。还在问我的IP是什么,叫我使用 tracert 追踪一下我在国外的域名。 我想说,我在这里可以 tracert 到你家,现在你你家到国内某个网站不行。 呵呵。 现在我们的党和人民也在想方设法的阻碍我们与世界人民的交流。我问客服 Hello, My site's dedicated ip address could not access the sites in China, could you help me to move another server? Thank you. Here is two test url for debug:one is http://www.soonle.com/test1.php this code is<?php echo file_get_contents("http://www.google.com") ; ?> It is OK.Another is http://www.soonle.com/test2.php this code is<?php echo file_get_contents("http://www.baidu.com") ; ?> It is not work, and wraning "time out". I confirm that the timed out do not cause this. 客服回答:
Hello,If you are experiencing errors accessing your domain via web, ftp, email or otherwise, please provide us with the following:1.) Your geographic location 2.) Your ISP 3.) Your IP Address (can be obtained at http://www.whatismyip.com/) 4.) If applicable, a url we can use to test ( please include username and password if required).:|Traceroute|:. A traceroute doing the following:Windows XP/2000 1. Go to Start > Run... 2. Enter cmd and click OK. 3. At the prompt, type tracert yourdomain.com and hit enter.有些牛头不对马嘴。 相当于a能访问b,a能访问c,然后b和c就能互访。
答案是否定的你可以尝试使用curl
file_get_contents 和 curl
是完全不同的
觉得纳闷,国外的服务器访问国外的网站没有问题;
国内用户访问国外服务器没有问题;
国外的服务器访问国内的网站有问题。按理说,只要在网站服务器上做限制,file_get_contents访问网站与在那台服务器上上网没有任何区别!
我想说,我在这里可以 tracert 到你家,现在你你家到国内某个网站不行。 呵呵。
现在我们的党和人民也在想方设法的阻碍我们与世界人民的交流。我问客服
Hello,
My site's dedicated ip address could not access the sites in China, could you help me to move another server? Thank you. Here is two test url for debug:one is http://www.soonle.com/test1.php this code is<?php
echo file_get_contents("http://www.google.com") ;
?> It is OK.Another is http://www.soonle.com/test2.php this code is<?php
echo file_get_contents("http://www.baidu.com") ;
?> It is not work, and wraning "time out". I confirm that the timed out do not cause this.
客服回答:
Hello,If you are experiencing errors accessing your domain via web, ftp, email or otherwise, please provide us with the following:1.) Your geographic location
2.) Your ISP
3.) Your IP Address (can be obtained at http://www.whatismyip.com/)
4.) If applicable, a url we can use to test ( please include username and password if required).:|Traceroute|:.
A traceroute doing the following:Windows XP/2000
1. Go to Start > Run...
2. Enter cmd and click OK.
3. At the prompt, type tracert yourdomain.com and hit enter.有些牛头不对马嘴。
相当于a能访问b,a能访问c,然后b和c就能互访。
然后要给curl设置浏览器参数
就是想利用traceroute来确认了。而且必须是在那个服务器上去试。
不过一般情况下空间可能禁止掉system,因为太危险了。另外就是system没被禁掉,但是apache的权限也不够运行tracert的。
不行就换个虚拟主机吧。