edkellett Posted September 12, 2008 Share Posted September 12, 2008 I am being driven crazy by this... and it is probably a simple solution... I am desinging a site in PHP with MySQL DB... and using Dreamweaver for layout etc... I use includes a lot and want to know can I use absolute paths and how is this done. For example can I have an absolute path to the root of the web folder so that I can define the images/ folder and just put that in and know that whether I refer to it from the admin folder or from the root folder or a folder 3 levels deep it will still work... adn basically how do I do this in my local environment and also on the web... I am using IIS... so localhost... Anyone help? Link to comment https://forums.phpfreaks.com/topic/123993-relative-and-absolute-urls-please-help/ Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 Check out $_SERVER global variable. Link to comment https://forums.phpfreaks.com/topic/123993-relative-and-absolute-urls-please-help/#findComment-640118 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.