# PHP Help!? \[require\_once\] - issue

**URL:** <https://forum.kirupa.com/t/php-help-require-once-issue/239418>\
**Category:** programming\
**Created:** [September 21, 2007, 2:43pm UTC](https://forum.kirupa.com/t/php-help-require-once-issue/239418 "2007-09-21T14:43:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [September 21, 2007, 2:43pm UTC](https://forum.kirupa.com/t/php-help-require-once-issue/239418/1 "2007-09-21T14:43:51Z")

</div>

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!!  
😃
