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

Posted by xieliwei on 08/10/07 15:12

I have a freshly installed openSuSe 10.2 with PHP4 from
http://download.opensuse.org/repositories/home:/michal-m:/php4/openSUSE_10.2/
(openSuSe abandoned PHP4 since version 10, but I have customers who
need php4 support)

The version strings are as follows:
# uname -a
Linux server2 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006
i686 athlon i386 GNU/Linux

# php -v
PHP 4.4.0 (cli) (built: Jun 1 2007 08:43:26)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

# httpd2 -v
Server version: Apache/2.2.3
Server built: Nov 25 2006 18:25:39

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.

I have checked my network configuration, nameservers and gateway
settings are set up properly, I can also ping and visit the URL i'm
trying to open.

Been looking around for a week now, seen no solution, unless it
slipped by me.

 

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

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