Base for php.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Base for php.

Post 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. :)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

include_path(...) or ini_set('include_path', ...)
(#10850)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply