|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-04 08:09 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 21:00:02 2026 UTC |
Description: ------------ Ok, I have found a couple of spots mentioning this, including here. But no solid answer. This code works fine on 2 WinXP boxes, 1 RH linux box, and another misc linux (I think also RH). So I'm thinking this isn't a relative position issue. However it does not work on a custom Web Server Application box (aka Cobalt RaQ 550). Reproduce code: --------------- Here is the senerio: DOCUMENT_ROOT: /home/.sites/143/site2/web/ SitePath of index.php: /modules/adminpanel/ SitePath of privileges.php: /modules/adminpanel/ SitePath of fleet_functions.php: /includes/ SitePath of fleetdb.php: /includes/ File1: index.php <? $myRoot = $_SERVER['DOCUMENT_ROOT']; include("privileges.php"); ?> File2: privileges.php <? include_once("$myRoot/includes/fleet_functions.php"); ?> File3: fleet_functions.php <? include("fleetdb.php"); ?> Expected result: ---------------- I expected all the files to be included like they have on my local box testing and server testing. This is something unique about my new development test server. Actual result: -------------- I get an error message on the fleet_functions.php file: Warning: main(fleetdb.php): failed to open stream: No such file or directory in /home/.sites/143/site2/web/includes/fleet_functions.php on line 2 Warning: main(): Failed opening 'fleetdb.php' for inclusion (include_path='') in /home/.sites/143/site2/web/includes/fleet_functions.php on line 2