Bug #15974 Updated: fopen() problems with subdomain opening files

From: Date: Sun, 10 Mar 2002 11:38:36 +0000
Subject: Bug #15974 Updated: fopen() problems with subdomain opening files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2154@lists.php.net to get a copy of this message
ID: 15974 Updated by: sander@php.net Reported By: loge@moregroupware.org -Status: Open +Status: Closed Bug Type: URL related Operating System: Win32 / Linux PHP Version: 4.1.2 New Comment: You need a real DNS server. To avoid this problem, you manually create a HTTP request to the right IP address using fsockopen. Previous Comments: ------------------------------------------------------------------------ [2002-03-09 16:15:07] loge@moregroupware.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15974&edit=1

« previous php.bugs (#2154) next »