Reply to Re: Weird problem using fopen()

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация