|
hi there,
may sound a real basic question this but im having problem with displaying an image fron another folder at a similar level.
in my page "index.php" in my site root folder i use a php include called "sidemenu.php" which is in a subfolder "called includes", i then store my images in a folder called "images" which is a subfolder in the site root folder.
therefore my locations look like:
../index.php
../includes/sidemenu.php
../images/logo.gif
i want to use the img src tag in my sidemenu.php to display logo.gif however if i use the tag:
<img src="../images/logo.gif" />
if i preview sidemenu.php in my browser it works fine, but then it will not display the image when i preview index.php (even though it includes sidemenu.php which references logo.gif).
i presume this is probably because it is referenced from sidemenu.php which is in another level folder to index.php. is there anyway i can stop this happening? i dont really want to change my directory structures!
thanks in advance
|