Problem with include();

From: Date: Sun, 07 Sep 2003 05:31:50 +0000
Subject: Problem with include();
Groups: php.general 
Request: Send a blank email to php-general+get-161891@lists.php.net to get a copy of this message
/index.php has include("/code/includes/page_header.php"); /docs/aaryn/dmb/dave.php has include("/code/includes/page_header.php"); Both are identical lines of code. Index.php works but dave.php returns the following: Warning: Failed opening '/code/includes/page_header.php' for inclusion (include_path='.;c:\php4\pear') in C:\x\x\x\x\x\aaryn\dmb\dave.php on line 4 but if I change the code in dave.php to include '../../../code/includes/page_header.php'; It works. Why? Is there any way around this? Please tell me I'm doing something wrong and it's not supposed to work like this!!! Ty...

« previous php.general (#161891) next »