You are here: Re: Not the common "failed to open stream: HTTP request failed!" problem « PHP Programming Language « IT news, forums, messages
Re: Not the common "failed to open stream: HTTP request failed!" problem

Posted by Rik on 08/15/07 14:13

On Wed, 15 Aug 2007 13:33:16 +0200, <xieliwei@gmail.com> wrote:
> On Aug 12, 3:59 pm, xieli...@gmail.com wrote:
>> On Aug 11, 11:43 pm, xieli...@gmail.com wrote:
>> > On Aug 11, 12:23 am, Rik <luiheidsgoe...@hotmail.com> wrote:
>> > > > The problem here is that URL fopen does not seem to be open,
>> despite
>> > > > allow_url_fopen set as On in php.ini and phpinfo() reflecting it.
>>
>> > > > A simple fopen("http://www.example.com", r) returns the error
>> "failed
>> > > > to open stream: HTTP request failed!" in BOTH PHP-in-apache and
>> PHP-
>> > > > cli.
>>
>> > > Hmmmz, have you tried an fsockopen() instead of an fopen(), and if
>> so,
>> > > does that give the same problems or not?
>>
>> Whoops, guess I was wrong. fsockopen() works well, so I guess my HTTP
>> wrapper is damaged or something?
>
> Sorry to bump, but does anyone have a solution?

Nope, sorry, if an fsockopen() works (can connect and grab contents), and
a fopen() doesn't, and allow_url_fopen is on, I'm stumped. I'd almost say
there was something wrong with your PHP install. Can't be a 100% sure
though.

--
Rik Wasmus

 

Navigation:

[Reply to this 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

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