Base for php.
Posted: Thu Nov 08, 2007 2:32 am
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.
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.