php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18443 Repeat of Bug #9815 cannot include/require files on network shares
Submitted: 2002-07-19 22:02 UTC Modified: 2002-10-08 21:41 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: debug at parafx dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.2.1 OS: win32 (windows 2000)
Private report: No CVE-ID: None
 [2002-07-19 22:02 UTC] debug at parafx dot com
Warning: Failed opening '../includes/header.php' for inclusion (include_path='.;/includes') in \\vol\sites$\website\public\pages\search.php 


<?php 
	$page="search";
	include("../includes/header.php");
?>

It seems to not like the relative path. I can use:
<?php 
	$page="search";
	include("/includes/header.php");
?>
OR
<?php 
	$page="search";
	include("header.php");
?>

But the traversing back via relative path is not working I tried a CVS from 2 days ago but that CVS didn't work at all.

Any suggestions? It would be really great to get this working again.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-24 12:23 UTC] debug at parafx dot com
Any information on the status of this? I would like something to give back to my developers other than "It doesn't work" 8)
 [2002-09-17 21:34 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

The bug does not appear in latest CVS, at least not on WinXP.
 [2002-10-08 21:41 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 13 07:01:30 2024 UTC