Jump to content

file_get_contents ??


d.shankar

Recommended Posts

This is the code

 

<?php
$content=file_get_contents("http://www.google.com",FALSE,NULL,0,20);
echo $content;
?>

 

I am getting this error

 

 

Warning: file_get_contents(http://www.google.com) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\wamp\www\tested.php on line 2

 

allow_url_fopen is set to On in my php.ini.

 

Link to comment
https://forums.phpfreaks.com/topic/73444-file_get_contents/#findComment-370510
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.