Re: Nested includes - Relative paths?
| From: | Larry Garfield | Date: | Wed, 08 Nov 2006 15:20:59 +0000 |
| Subject: | Re: Nested includes - Relative paths? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244379@lists.php.net to get a copy of this message | ||
On Wednesday 08 November 2006 07:52, Nuno Vaz Oliveira wrote:
> Hello Larry,
>
> Now I think I got it :)
>
> > All include statements are parsed based on the
> > defined include path, where "." is interpreted
> > relative to the active context, vis, the script
> > that the web server itself is running.
>
> I wasn't aware of the existence of an include_path...
> That's why I was having a strange behaviour. It
> doesn't look for the files in one only one place.
> Instead, it looks for the files in possible places
> (defined by include_path) using a priority for that.
>
> Right?
Correct.
http://www.php.net/set_include_path
--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson