ไม่ทราบว่า fuction ตัวนี้มันต้องเปิดอะไรใน php.ini ก่อนรึเปล่า เพราะมัน error ออกมาครับ
รบกวนผู้รู้ทุกท่านช่วยด้วยครับ
โดยโค้ดเป็นประมาณนี้ ครับ
code :
$xml = file_get_contents("
http://test.php");
echo $xml;
response :
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Inetpub\wwwroot\code\test.php on line 3
Warning: file_get_contents(
http://test.php) [function.file-get-contents]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\code\test.php on line 3
ไม่ทราบว่า fuction ตัวนี้มันต้องเปิดอะไรใน php.ini ก่อนรึเปล่า เพราะมัน error ออกมาครับ
รบกวนผู้รู้ทุกท่านช่วยด้วยครับ
โดยโค้ดเป็นประมาณนี้ ครับ
[color=#FF0000]code :[/color]
$xml = file_get_contents("http://test.php");
echo $xml;
[color=#FF0000]
response :[/color]
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Inetpub\wwwroot\code\test.php on line 3
Warning: file_get_contents(http://test.php) [function.file-get-contents]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\code\test.php on line 3