Page 1 of 1

php and directories (new to php)

Posted: Wed Mar 10, 2004 10:06 am
by iceni
Hi all,

I'm new to php and I might get the 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.

sorry if this makes no sense.

cheers

iceni

Posted: Wed Mar 10, 2004 10:24 am
by dull1554
in flash when you set the links do something like

Code: Select all

../thisisalink.php

Posted: Wed Mar 10, 2004 10:26 am
by m3mn0n
../(insert link here)

or <base url="">

Posted: Wed Mar 10, 2004 10:33 am
by iceni
yeah, the problem is i'm going over more than one level, so sometimes its going to be ../../ which would mean i would need a new flash file. sorry i f i am making no sense