...

View Full Version : re-setting the path ??



jeddi
08-28-2006, 09: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

www.mysite.com/agents/west/

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

www.mysite.com/scripts/

Thanks

devinemke
08-28-2006, 07: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