php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18712 Include not working With UNC
Submitted: 2002-08-02 15:17 UTC Modified: 2002-09-09 05:12 UTC
From: seribus at seribus dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.2.2 OS: Windows 2000
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: seribus at seribus dot com
New email:
PHP Version: OS:

 

 [2002-08-02 15:17 UTC] seribus at seribus dot com
PHP version 4.2.2(CGI)
IIS 5.0


My includes do not seem to be working with UNC
When I use Absolute paths or relative Paths(../,./)


<?
if (file_exists("\\S1\Share\phptest\f1\include.php") ){
  echo "Exists<BR>";
} else {
  echo "Does not Exist<BR>";
}
// Find file  So access is not a problem

include ("\\S1\Share\phptest\f1\include.php");
//this fails


include ("\\S1\Share\phptest\f1\include.php");
include ("../f1/include.php");
//this fails

include ("f1/include.php");
//this works

?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-02 15:35 UTC] Seribus_php at seribus dot com
sorry 
include ("../f1/include.php");
should be 
include ("../phptest/f1/include.php");
 [2002-09-09 00:14 UTC] debug at parafx dot com
I am also having this problem I reported it a while back and it was tagged as a srcipt engine problem. I have recently installed 4.2.3 on Win2k IIS5 and the problem persists.

I can include files from within the running dir or under but not ../
 [2002-09-09 00:15 UTC] debug at parafx dot com
Sorry see bug 18443 for more info
 [2002-09-09 05:12 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the original bug instead.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 18:01:31 2024 UTC