Trouble with absolute links vs document relative links in PHP.
Posted on 2014-01-22
So I wanted to do the right thing and have pages with almost no code on them, pages which contained mostly includes to other files with HTML and PHP. But quickly started running into problems when the files I was including pointed to other PHP resources with document-relative links. And the file receiving the included files had a different path to the various directors and etc. It was a mess and a half. So i just wanted to know how some of you advanced users address this issue. Do you just put in the entire absolute links everywhere in the site?