|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15974 fopen() problems with subdomain opening files
Submitted: 2002-03-09 16:15 UTC Modified: 2002-03-10 06:38 UTC
From: loge at moregroupware dot org Assigned:
Status: Closed Package: URL related
PHP Version: 4.1.2 OS: Win32 / Linux
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: loge at moregroupware dot org
New email:
PHP Version: OS:


 [2002-03-09 16:15 UTC] loge at moregroupware dot org
short description of environment. I am requesting from win32 browser to linux webapplication. i defined a subdomain in hosts file (win32) that points to the linux server.

following line:

$fp = @fopen ("http://mgwdev.logelinux/index.php", "r");

this returns false even i know that this url is correct. i typed it 100 times in the browser.

This line

$fp = @fopen 
("http://logelinux/moregroupware_dev/index.php", "r");

will return true, but its the same location. mgwdev.logelinux is a virtual host in apache.

I am a little bit clueless. I didnt found any comments on this. I hope i am not weird.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-10 06:38 UTC]
You need a real DNS server.
To avoid this problem, you manually create a HTTP request to the right IP address using fsockopen.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Mar 23 06:03:38 2023 UTC