# Php and directories

**URL:** <https://forum.kirupa.com/t/php-and-directories/45057>\
**Category:** Uncategorized\
**Created:** [March 10, 2004, 3:58pm UTC](https://forum.kirupa.com/t/php-and-directories/45057 "2004-03-10T15:58:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mid\_ori](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@mid\_ori](https://forum.kirupa.com/u/mid_ori)\
**Post date:** [March 10, 2004, 3:58pm UTC](https://forum.kirupa.com/t/php-and-directories/45057/1 "2004-03-10T15:58:08Z")

</div>

Hi all,

I might get my explanation wrong but here goes.

I’m currently building a website with each section of the site been in a new directory i.e root has the index.php in it, then theres seperate folder holding the portfolio section.

but my problem i’m using a ‘php include’ to call the flash into the page (so any problems just have to change my header once). But when i include the flash file on the second level the links in the flash nav don’t work becasuse it thinks its in the second level of folders. So is their a way with flash or php that what ever level the flash is on it believes its on the first level.

\*maybe this is more a php question

sorry if this makes no sense.

cheers

midori
