Re: include path
| From: | Teodor Cimpoesu | Date: | Mon, 27 Nov 2000 14:43:16 +0000 |
| Subject: | Re: include path | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27375@lists.php.net to get a copy of this message | ||
Hi Daniel!
On Mon, 27 Nov 2000, Daniel Convissor wrote:
> Hi Thomas:
>
> > How to set my own include path without editing php.ini??
>
> The include_path doesn't need to be set in your php.ini. What may be
> tripping you up is trying to include files from the wrong directories. Note,
> all directory requests are relative to the INITIAL PHP script called. So,
> you'll have to call things like this:
>
> --------------
> <?php
> # This file is /htdocs/someone/subdir/home.php
> include("../head.inc");
> echo "That's it";
> ?>
You may also try ini_set().
-- teodor