Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Mark Smith
January 28, 2009, 11:06 am
rate this thread
I need to read some data from a web service using JSON.
I thought I could read text from a URL like so:
$handle = fopen("http://google.com/robots.txt ", "r");
$contents = stream_get_contents($handle);
But after 30 seconds that times out with the following error:
"Warning: fopen(http://google.com/robots.txt ) [function.fopen]: 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."
Am I doing something wrong? Or is there something else I need to
- C. (http://symcbean.blogspot.c
January 28, 2009, 11:39 am