ID:               40881
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tkauk at t-online dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Streams related
 Operating System: Vista
 PHP Version:      5.2.1
 New Comment:

Not PHP problem.


Previous Comments:
------------------------------------------------------------------------

[2007-03-21 11:22:27] tkauk at t-online dot de

Description:
------------
file_get_contents fails to open a stream with an "http://localhost
inside". 
Pinging or open the url via a browser works fine.
The same environment (apache, php.ini, etc.) works on XP.
Any ohter url not containing localhost(includung 127.0.0.1) works
fine.



Reproduce code:
---------------
<?php
$myUrl = "http://localhost/index.html";;
//$myUrl = "http://127.0.0.1/index.html";;
if (!($cont=file_get_contents($myUrl))) {
  echo "<br/>error opening Url:" . $myUrl . " <br/>";
 }
 else {
   echo "$cont";
 }
?>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40881&edit=1

Reply via email to