note 63604 added to function.require

From: Date: Sat, 25 Mar 2006 04:09:39 +0000
Subject: note 63604 added to function.require
Groups: php.notes 
Request: Send a blank email to php-notes+get-106561@lists.php.net to get a copy of this message
file: /var/www/index.php requires /var/www/includes/header.php this code works: <?php if(file_exists("includes/themes/".THEME_NAME."/header.php")) { require("themes/".THEME_NAME."/header.php"); } ?> It "requires" the file successfully. Can anyone tell me why the "file_exists" function doesn't work from the working directory ("/var/www/includes/") and will only work from the directory calling the script? this is very, very annoying but maybe I'm missing some kind of underlying functionality... ---- Server IP: 216.194.113.175 Probable Submitter: 24.255.246.56 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.require.php Edit -- http://master.php.net/note/edit/63604 Del: integrated -- http://master.php.net/note/delete/63604/integrated Del: useless -- http://master.php.net/note/delete/63604/useless Del: bad code -- http://master.php.net/note/delete/63604/bad+code Del: spam -- http://master.php.net/note/delete/63604/spam Del: non-english -- http://master.php.net/note/delete/63604/non-english Del: in docs -- http://master.php.net/note/delete/63604/in+docs Del: other reasons-- http://master.php.net/note/delete/63604 Reject -- http://master.php.net/note/reject/63604 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106561) next »