Bug #12439: fopen and URL on the same server
| From: | reweiner at yahoo dot com | Date: | Sat, 28 Jul 2001 00:06:14 +0000 |
| Subject: | Bug #12439: fopen and URL on the same server | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61284@lists.php.net to get a copy of this message | ||
From: reweiner@yahoo.com
Operating system: Linux-2.2.19
PHP version: 4.0.6
PHP Bug Type: Filesystem function related
Bug description: fopen and URL on the same server
Hi,
I got a following problem with this script:
<?
$tempurl = "http://www.hostinsameserver.com";
$tempurl2 = "http://www.yahoo.com/";
$tempfile2 = fopen("$tempurl2/index.html", "r");
echo $tempfile2;
$tempfile = fopen("$tempurl/index.html", "r");
echo $tempfile;
?>
The first one is hosted in the same machine as the script that is running
on it ( it can even be the same site ). The second is hosted outside the
network.
When it tries to access the first URL it hangs forever. No CPU consumption
or memory.
I tried with PHP-3.0.18 ( same machine ) and it works, so I discarded DNS
problems.
Any hint ?
Renato.
--
Edit bug report at: http://bugs.php.net/?id=12439&edit=1