|  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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: reweiner at yahoo dot com
New email:
PHP Version: OS:


 [2001-07-27 20:06 UTC] reweiner at yahoo dot com

I got a following problem with this script:

$tempurl = "";
$tempurl2 = "";

$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 ?


Add a Patch

Pull Requests

Add a Pull Request


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 Jun 15 04:01:30 2024 UTC