Warning: file_get_contents() [function.file-get-contents]: couldn't resolve host name infile_get_content() 如果填IP..就可以..域名就报错! DNS没问题...我在linux下ping域名正常!allow_url_open已打开.....现在的情况就是..... curl和file_get_content都不能用域名!
调试欢乐多
代码这样就正常,但域名保证没问题http://不要省略
var_dump(ini_get('allow_url_fopen'));
//你所说的allow_url_open 是allow_url_fopen吗?
把你可以使用的ip地址这样输出看看域名$hostname = gethostbyaddr("204.15.192.194");echo $hostname;