Re: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Richard Lynch
You can save yourself a LOT of headaches by utilizing the ever-popular 'include_path' feature so you never have to put any kind of directory info into your include statements. http://php.net/include_path On Tue, November 7, 2006 9:50 pm, Nuno Vaz Oliveira wrote: > Hi All, > > I'm relatively new to

RE: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Nuno Vaz Oliveira
> > Correct. > > http://www.php.net/set_include_path > Thanks! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Larry Garfield
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 runn

RE: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Nuno Vaz Oliveira
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

Re: [PHP] Nested includes - Relative paths?

2006-11-07 Thread Larry Garfield
On Tuesday 07 November 2006 21:50, Nuno Vaz Oliveira wrote: > because INCLUDE\SESSION.PHP is going to be included in INDEX.PHP witch is > NOT in the same directory of DATABASE.PHP? > > > In other words... When PHP processes an include statement does it include > the file where the include statemen