php.net |  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
 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-10 06:38 UTC] sander@php.net
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-2021 The PHP Group
All rights reserved.
Last updated: Sat Dec 04 14:03:34 2021 UTC