note 47990 added to function.set-include-path
| From: | r dot s dot goldsmith at far-blue dot co dot uk | Date: | Wed, 08 Dec 2004 11:23:37 +0000 |
| Subject: | note 47990 added to function.set-include-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81517@lists.php.net to get a copy of this message | ||
If you want to set the paths php uses to find included files on a directory by directory level, you
can do so in Apache's .htaccess file. Add the line:
php_value include_path "<first path to look>:<second path>:<etc>:."
to the .htaccess file. This will replace any paths set in your environment or the php.ini file so
remember to include the path to php's own libraries as, usually, the first option!
V.useful tip given to me by the 'php guy' at Edinburgh Uni's Computing Support.
----
Manual Page -- http://www.php.net/manual/en/function.set-include-path.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47990
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47990&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47990&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47990&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47990&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47990&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47990&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47990&report=yes
Search -- http://master.php.net/manage/user-notes.php