RE: [PHP] include_path
| From: | Chris Hobden | Date: | Mon, 22 Dec 2003 10:41:30 +0000 |
| Subject: | RE: [PHP] include_path | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173140@lists.php.net to get a copy of this message | ||
set_include_path(get_include_path().":"/new/incude/path");
> -----Original Message-----
> From: Alain Williams [mailto:addw@phcomp.co.uk]
> Sent: 22 December 2003 10:16
> To: php-general@lists.php.net
> Subject: [PHP] include_path
>
> Is there a way of modifying the include_path within a script,
> I want to add to it, not completely change it. The sort of
> thing that I want to do is equivalent to the following bit of
> shell code:
>
> PATH="$HOME/bin:$PATH"
>
> ie add a user specific part to the path - so that a
> production/test 'require'
> gets the production/test version of a file.
>
> Please CC me on any reply since I don't subscribe to this list.
>
> Thanks
>
> --
> Alain Williams
>
> #include <std_disclaimer.h>
>
> FATHERS-4-JUSTICE - Campaigning for equal rights for parents
> and the best interests of our children. See
> http://www.fathers-4-justice.org
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>
>