AJ Lemke wrote: > Hello all, > > I have an install of php on a Red Hat Ent. server that is giving me fits. > I have been trying to use the fopen command to retreive files from external > sites and have been getting this error: > > Warning: fopen(http://us3.php.net/images/php.gif): failed to open stream: > HTTP request failed! in /home/test/public_html/declare.php on line 2 >
Servers are occasionally down. I think the us3 mirror was down for quite a while today (us4, us2 and www all worked when I tried them earlier). In my signature do you notice how I have the php.net site without indicating which mirror I want? That's because making the request in *that* way will let the php.net site determine which mirror to use for your request. Perhaps you will have better luck in the future if you try to; <?php fopen('http://php.net/images/php.gif', 'r'); ?> -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature