Hello Tom, Friday, March 4, 2005, 9:13:41 PM, you wrote: TR> This will set the include path just before the document root: Hmmmm. Not quite what I'm looking for. I set up some test folders and files on a development machine to play with your script. Here's how it was laid out: The document root for the test site: "c:\sambar\docs\test" A subfolder of the doc root "folder1" A subfolder of the above folder1 "folder2" Placing a file called test.php (containing your script) in all three places (doc root, folder1, folder1/folder2) gives you the following respectively. Root: c:\sambar\docs\test\test.php Document root: c:\sambar\docs\test\test.php Base: test.php Include: c:\cambar\docs\test\include OS: winnt Include: c:\cambar\docs\test\include;.;C:\php5\pear Ultimately, this would be the correct folder I would want, but see the below two tests. Root: c:\sambar\docs\test\folder1\test.php Document root: c:\sambar\docs\test\folder1\test.php Base: test.php Include: c:\sambar\docs\test\folder1\include OS: winnt Include: c:\sambar\docs\test\folder1\include;.;C:\php5\pear Root: c:\sambar\docs\test\folder1\folder2\test.php Document root: c:\sambar\docs\test\folder1\folder2\test.php Base: test.php Include: c:\sambar\docs\test\folder1\folder2\include OS: winnt Include: c:\sambar\docs\test\folder1\folder2\include;.;C:\php5\pear I don't see where your script is giving me the include folder I want. Thanks though. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site <http://www.PCWize.com> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php