View Full Version : re-setting the path ??

08-28-2006, 08:23 AM
Is there a way to set the path so that my includes get found ?

After using mod_rewrite my path gets set to


although I have put an absolute path for the script that runs next, I don't want to put absolute paths all through my website for all the includes and form actions and hrefs.

How can I just set the path at the top of the script so it changes to



08-28-2006, 06:46 PM
you can chdir (http://www.php.net/chdir) to whatever dir you want and then use realtive paths.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum