If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I have thought of your concept to Bev. Am I correct when saying that the / does not work as expected for php with include() and require(), I seem to get a fatal error when using it on a live site. Does php look from the root already or what?

That's a great solution and totally workable/sufficient in many cases. I'd only suggest using constants instead of variables, so you can't accidentally modify/overwrite them (and they will always be available globally, regardless of scope):

Thanks for all the input. I have taken the time and converted my cms to use / on most links and image paths. It wasn't that terrible to do really. I made a few define() to help, although a couple of these I already had but mostly for localhost use. I have a few different versions so that I have options of when and where I need to use them depending on localhost or online and php includes or html links.