ID: 27105 Updated by: [EMAIL PROTECTED] Reported By: jprins at ision dot nl -Status: Open +Status: Feedback Bug Type: HTTP related Operating System: Unix PHP Version: 4.3.4 New Comment:
(1) In your test script dump the contents of $http_response_header, not $http_response_headers. (2) Use readfile() when all you're including is content and not actual PHP code. Using include() on a remote URL which you don't control is a security risk and a completely unnecessary one in this context. Previous Comments: ------------------------------------------------------------------------ [2004-01-31 10:46:34] jprins at ision dot nl 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 ------------------------------------------------------------------------ [2004-01-31 10:40:40] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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
