但是仍然无法读取。
错误信息:Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in D:\website\108BUY.COM\forum\shu\test1.php on line 2Warning: file_get_contents(http://www.read8.net): failed to open stream: No such file or directory in D:\website\108BUY.COM\forum\shu\test1.php on line 2
服务器环境变量的地址为:http://forum.108buy.com/shu/test.php
错误信息:Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in D:\website\108BUY.COM\forum\shu\test1.php on line 2Warning: file_get_contents(http://www.read8.net): failed to open stream: No such file or directory in D:\website\108BUY.COM\forum\shu\test1.php on line 2
服务器环境变量的地址为:http://forum.108buy.com/shu/test.php
PHP Code:
fsockopen("www.ip-to-location.com/free.asp", 80, $errno, $errstr, 30); is a no go but
PHP Code:
fsockopen("www.ip-to-location.com", 80, $errno, $errstr, 30); is perfectly fine.但是这样不是解决之道。