I'm using <base href> to set my HTML path for links, and chdir() to set PHP's base path.
(Entering site at www.mysite.com/account then resetting my paths back to root for simplicity).
Both of these are working fine, however I've found Javascript ignores <base href> so it's working directory is still a subfolder of root.
OK - so I could add '../' to all Javascript links (which is what I was trying to get away from!) but I've read that it's only IE that ignores <base href> and other browsers accept it.
This will mean my links break unless I either stop using <base href> entirely and go back to using '../' in ALL links, or I can find a way to set Javascript's base link pointer...
This is driving me crazy! Any ideas of how to do it?