#41259 [Com]: IIS "Virtual Directory" on a share doesn't work

From: Date: Thu, 21 Feb 2008 02:54:49 +0000
Subject: #41259 [Com]: IIS "Virtual Directory" on a share doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122534@lists.php.net to get a copy of this message
ID: 41259 Comment by: dshafae at papercheck dot com Reported By: moreno dot feltscher at emsservices dot ch Status: No Feedback Bug Type: IIS related Operating System: Windows Server 2003 PHP Version: 5.2.1 New Comment: I found a workaround for the "Virtual Directory" bug. I just used the local path. It seems to work on IIS 6.0. I setup a virtual directory on our Windows 2003 server and then instead of using: <?PHP require(dirname(__FILE__)."/name_of_virtual_directory/your_file_here.php"); ?> I used: <?php require("C:/websites/name_of_virtual_directory/your_file_here.php"); ?> Try it, it worked for me. Previous Comments: ------------------------------------------------------------------------ [2007-05-17 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-05-09 19:07:00] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2007-05-09 12:06:13] moreno dot feltscher at emsservices dot ch OK, I found the solution: You have to include the full address e.g. http://server/directory. Now it works. Thanks a lot for your help. ------------------------------------------------------------------------ [2007-05-02 10:44:16] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2007-05-02 10:07:11] moreno dot feltscher at emsservices dot ch Description: ------------ On my IIS-Website I've got a "Virtual Directory", which's target is on another server as share. When I try to get a file (eg. include 'directory_on_other_server/test.php';) from there over the include-function it doesn't work and I have a blank screen. Is this a known issue? How can I solve this problem? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41259&edit=1

« previous php.bugs (#122534) next »