note 14972 added to function.require-once.php

From: Date: Wed, 22 Aug 2001 23:32:16 +0000
Subject: note 14972 added to function.require-once.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-17006@lists.php.net to get a copy of this message
My programming team was able to nullify the "relative paths" problem by using an include path in our .htaccess file. This works similarly to the PATH in DOS, allowing us to use just the filenames of the files we want to include (or include_once) and omit the relative path portion. Add the following to your .htaccess file: php_value include_path .:/usr/home/blah/html/include_dir Then simply leave out all path info from your include() string. http://www.php.net/manual/en/function.require-once.php

« previous php.notes (#17006) next »