ID: 27105
Updated by: [EMAIL PROTECTED]
Reported By: jprins at ision dot nl
-Status: Feedback
+Status: No Feedback
Bug Type: HTTP related
Operating System: Unix
PHP Version: 4.3.4
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
..and you should fix your server..
Previous Comments:
------------------------------------------------------------------------
[2004-02-01 05:51:01] [EMAIL PROTECTED]
Why does it work fine for me? Using this script:
<?php
readfile("http://www.ccmplanet.com/");
var_dump($http_response_headers);
?>
I get the page contents and the correct headers..
So what is different? (I'm running the script with CLI)
------------------------------------------------------------------------
[2004-02-01 03:29:36] jprins at ision dot nl
I don't think the weird characters in the error message are
normal?
Warning: readfile(http://www.ccmplanet.com/): failed to open stream:
HTTP request failed! [EMAIL PROTECTED]>��\@@���<�� in
/home/sites/site90/web/testrss.php on line 5
------------------------------------------------------------------------
[2004-01-31 23:41:13] [EMAIL PROTECTED]
Works fine with latest CVS snapshot. Worked fine with PHP 4.2.2 too.
:)
------------------------------------------------------------------------
[2004-01-31 13:15:11] jprins at ision dot nl
Changed the include into readfile, but same result
------------------------------------------------------------------------
[2004-01-31 12:25:40] [EMAIL PROTECTED]
(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.
------------------------------------------------------------------------
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/27105
--
Edit this bug report at http://bugs.php.net/?id=27105&edit=1