Page 1 of 1

Base for php.

Posted: Thu Nov 08, 2007 2:32 am
by JellyFish
Is there a equivalent base function to php like HTML's "base" element?

Such as a function that makes all URL's directory the root directory of my server, just like the base element does for HTML.

This way I can type include("path/filename.php") when I'm in "someotherpath/filename.php" without having to type include("home/content/bla/bla/bla/html/path/filename.php").

I tried searching google and php.net but I honestly don't know what to search for; what my keywords would be.

Thanks for reading. I appreciate all posts. :)

Posted: Thu Nov 08, 2007 3:08 am
by Christopher
include_path(...) or ini_set('include_path', ...)

Posted: Thu Nov 08, 2007 8:16 am
by feyd