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? Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 Check out $_SERVER global variable. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.