Posted by wizard04b on 03/23/07 19:46
I'm a PHP newbie, but I'm having similar results. Mine doesn't appear
to have to do with the length - both of your urls work for me - but
some work and others don't.
I can open:
http://www.thinkgeek.com/thinkgeek.rss
but not:
http://digg.com/rss/containertechnology.xml
I get the same "failed to open stream: HTTP request failed!" warning.
Here's my stripped-down code:
$fp = fopen($url, "r");
if($fp !== false)
{
$out = file_get_contents($url);
fclose($fp);
}
else
{
$out = "Not opened";
}
echo $out;
I'm all ears!
Andy
Navigation:
[Reply to this message]
|