php and directories (new to php)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
iceni
Forum Newbie
Posts: 2
Joined: Wed Mar 10, 2004 10:06 am

php and directories (new to php)

Post 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
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

in flash when you set the links do something like

Code: Select all

../thisisalink.php
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

../(insert link here)

or <base url="">
iceni
Forum Newbie
Posts: 2
Joined: Wed Mar 10, 2004 10:06 am

Post 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
Post Reply