note 63603 rejected from function.require by bjori
| From: | bjori@php.net | Date: | Sat, 25 Mar 2006 10:50:31 +0000 |
| Subject: | note 63603 rejected from function.require by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106570@lists.php.net to get a copy of this message | ||
Note Submitter: jimmygoon at gmail dot com
----
file: /var/www/index.php requires /var/www/includes/header.php
this code works:
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...