Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Handling varied paths
01-21-2008, 03:08 AM #1
- Join Date
- Jun 2007
- Thanked 1 Time in 1 Post
Handling varied paths
I want to organize my code into sections contained in their own sub-directories. There are a few files in the app root such as an index, login and logout scripts but the rest are in their own directories.
... ... images
My header file within the template directory will create the HTML head including the call for the CSS. The problem I am having is depending on what script (and where) that I include the header.inc.php - I have problems making sure the CSS and images are included.
How do you do this? Make sure that no matter where I call the header from it always includes the CSS and stuff correctly? I saw a post from November that touched on setting PHP's INI temporarily to include other paths. Is this how I have to do this?
ThanksOf all the things I've lost in my life time, my mind is the one I miss the most!
01-21-2008, 04:29 AM #2
- Join Date
- Dec 2007
- Thanked 890 Times in 879 Posts
take a look to "alban dot lopez+php dot net at gmail dot com" post:
about computing the shortest relative path between two folders.
Last edited by oesxyl; 01-21-2008 at 04:39 AM.