note 2490 modified in require by ronabop

From: Date: Fri, 11 Aug 2000 08:05:59 +0000
Subject: note 2490 modified in require by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1056@lists.php.net to get a copy of this message
I believe require("/includes/myinclude.php3") fails where require($DOCUMENT_ROOT . "/includes/myinclude.php3") succeeds is because php is running in the unix environment, not the apache environment, meaning that '/includes/myinclude.php3' is a call relative to the root directory of the filesystem. This is a guess, but I wouldn't be surprised. http://www.php.net/manual/function.require.php

« previous php.notes (#1056) next »