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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
43 - 9 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2023 The PHP Group
All rights reserved.
Last updated: Tue Jan 31 06:03:57 2023 UTC