#37894 [Opn->Fbk]: failed to open stream: HTTP request failed!
| From: | tony2001@php.net | Date: | Fri, 23 Jun 2006 15:30:29 +0000 |
| Subject: | #37894 [Opn->Fbk]: failed to open stream: HTTP request failed! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98722@lists.php.net to get a copy of this message | ||
ID: 37894
Updated by: tony2001@php.net
Reported By: roclar at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Solaris 10
PHP Version: 4.4.2
New Comment:
Again. Please try to connect to this web-server (aka example.com) using
a telnet or wget or something else from the server where the script is
located. I want you to do this because I suspect there is a firewall or
a proxy or some other reason which prevents you from connecting from one
server to another.
What you need to do: login to the server, run
telnet <example.com> 80
(or wget example.com/some_page.html), make sure you're able to get the
data.
Previous Comments:
------------------------------------------------------------------------
[2006-06-23 15:20:01] roclar at gmail dot com
<br />
<b>Warning</b>: main(http://www.example.com/) [<a
href='function.main'>function.main</a>]: failed to open
stream: HTTP request failed! in <b>/path/to/script/
testit.php</b> on line <b>3</b><br />
<br />
<b>Warning</b>: main() [<a
href='function.include'>function.include</a>]: Failed
opening 'http://www.example.com/' for
inclusion
(include_path='.:/usr/local/php/lib/php') in <b>/path/to/
script/testit.php</b> on line <b>3</b><br />
------------------------------------------------------------------------
[2006-06-23 15:14:58] tony2001@php.net
The "same result"? I.e. "unable to connect"?
------------------------------------------------------------------------
[2006-06-23 15:00:04] roclar at gmail dot com
I could use wget on the server and get the same result.
------------------------------------------------------------------------
[2006-06-23 14:52:14] tony2001@php.net
But are you able to connect to this server from the same host where
your PHP script is located?
------------------------------------------------------------------------
[2006-06-23 14:44:11] roclar at gmail dot com
The web server is Apache/1.3.36 (Unix)
I have command line access to the host and can compile, start/
stop, etc.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37894
--
Edit this bug report at http://bugs.php.net/?id=37894&edit=1