#27105 [Bgs->Opn]: Cannot open remote URL's
| From: | jprins at ision dot nl | Date: | Sat, 31 Jan 2004 15:46:35 +0000 |
| Subject: | #27105 [Bgs->Opn]: Cannot open remote URL's | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54213@lists.php.net to get a copy of this message | ||
ID: 27105
User updated by: jprins at ision dot nl
Reported By: jprins at ision dot nl
-Status: Bogus
+Status: Open
Bug Type: HTTP related
Operating System: Unix
PHP Version: 4.3.4
New Comment:
Tom, thanks for the quick response, the page still fails on my system.
Here's a link to phpinfo.
http://www.refresh.cx/php-info.php
Previous Comments:
------------------------------------------------------------------------
[2004-01-31 10:40:40] tomsommer@php.net
Your testing link works (again?)...
I thereby assume this was not a bug in PHP, rather a faulty
server/php-setup
------------------------------------------------------------------------
[2004-01-31 10:35:43] tomsommer@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Provide a link to a phpinfo() on your server, check if allow_url_fopen
is enabled.
Works for me
------------------------------------------------------------------------
[2004-01-31 08:47:25] jprins at ision dot nl
Description:
------------
PHP issues this warning:
Warning: main(http://www.ccmplanet.com/): failed to open stream: HTTP
request failed! in /home/sites/site90/web/testrss.php on line 17
Warning: main(): Failed opening 'http://www.ccmplanet.com/' for
inclusion (include_path='.:/usr/local/lib/php') in
/home/sites/site90/web/testrss.php on line 17
The weird thing is that this error only occurs on the
combination of my server (http://www.refresh.cx) and
the remote server (http://www.ccmplanet.com).
I _can_ include other remote URL's and other sites that
also use php-include from ccmplanet.com don't have problems accessing
ccmplanet.com
Reproduce code:
---------------
URL: http://www.refresh.cx/testrss.php
Code in this file:
<?php
include("http://www.ccmplanet.com/");
var_dump($http_response_headers);
?>
Expected result:
----------------
It should just include the file (it worked for years, but since a few
hours it stopped working, I suspect my hosting provider from changing
(upgrading?) the system).
Yes, I already asked what they did (no reply sofar)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27105&edit=1