Hey all,
I am trying to save myself time in the future for editing a website. I have a php website (in development) and i have my directories setup like the following:
** - includes**[INDENT]** - global_includes**
[/INDENT][INDENT][INDENT]** - functions** [I have set functions which echo out my filepaths]
[/INDENT][/INDENT][INDENT][INDENT]** - css** [i keep my style sheets here and call them as required]
[/INDENT][/INDENT][INDENT][INDENT]** - javascript** [i keep my js files here and call as required]
[/INDENT][/INDENT][INDENT][INDENT]** - images**
[/INDENT][/INDENT][INDENT][INDENT] - header.php
[/INDENT][/INDENT][INDENT][INDENT] - footer.php
- sidebar.php
[/INDENT][/INDENT]** - content**[INDENT]** - credits**
[/INDENT][INDENT][INDENT] - index.php [builds the page calling in my includes and
credits.php]
- credits.php [my content]
[/INDENT][/INDENT][INDENT]** - portfolio**
[/INDENT][INDENT]** - services**
[/INDENT][INDENT]** - etc…my page folders**
[/INDENT]Ok so my problem here is that i need to be able to somehow link backwards from my index.php in the credits folder to my global_includes folder to include my header.php etc…How can i go about this?
Ideally i would like to place this code/function or whatever in the paths script just to keep everything uniform.
Please help asap. Thanks in advance!!