php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12439 fopen and URL on the same server
Submitted: 2001-07-27 20:06 UTC Modified: 2001-07-28 14:45 UTC
From: reweiner at yahoo dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.6 OS: Linux-2.2.19
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: reweiner at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-07-27 20:06 UTC] reweiner at yahoo dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-28 14:45 UTC] reweiner at yahoo dot com
I found the problem. My DNS was broken.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC