php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41259 IIS "Virtual Directory" on a share doesn't work
Submitted: 2007-05-02 10:07 UTC Modified: 2007-05-17 01:00 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: moreno dot feltscher at emsservices dot ch Assigned:
Status: No Feedback Package: IIS related
PHP Version: 5.2.1 OS: Windows Server 2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: moreno dot feltscher at emsservices dot ch
New email:
PHP Version: OS:

 

 [2007-05-02 10:07 UTC] 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?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-02 10:44 UTC] 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 UTC] 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-09 19:07 UTC] 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-17 01:00 UTC] 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".
 [2008-02-21 02:54 UTC] dshafae at papercheck dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC