(2009-01-18, 03:56 AM)TomL Wrote: You can try doing, and replacing PAGE_NAME.PHP with the current page:
$dir = str_replace($_SERVER['PHP_SELF'], "PAGE_NAME.PHP", $_SERVER['PHP_SELF']); chdir($dir);
Not sure if it'll work, but it's worth a try.:p
Nah, that didn't work, lol. Oh well. I'll just have to edit the code for each page. Thanks a lot for your help.