Forum Moderators: coopster

Message Too Old, No Replies

directory

         

yllai

1:28 am on May 22, 2004 (gmt 0)

10+ Year Member



how to write the directory to retrive images in floder 'Images' to image_page.php

the image_page is in directory /var/www/html/webportal/modules/Brochure/pages
the images (image1.jpg, image2.jpg...) are in directory /var/www/html/webportal/modules/Brochure/images/Machine/APM

I have tried as <img src=\"modules/$module_name/images/Machine/APM/image1.jpg\">
but it cant work! what is the mistake i made?

WhosAWhata

1:43 am on May 22, 2004 (gmt 0)

10+ Year Member



am i right that you files look like this

var/www/html/webportal/modules/Brochure/pages/image_page.php
/var/www/html/webportal/modules/Brochure/images/Machine/APM/image1.jpg

if so you call like this
<img src=\"../images/Machine/APM/image1.jpg\">

yllai

2:50 am on May 22, 2004 (gmt 0)

10+ Year Member



can i just
<img src=\"/images/Machine/APM/image1.jpg\">

which is better? what is the mean of ../

WhosAWhata

2:56 am on May 22, 2004 (gmt 0)

10+ Year Member



there are two "special" folders in EVERY directory

./ means the folder you are in
../ means the direcotry a level below the one you are in

as in

./folder/../folder/./

is a pointless way of writting
folder/

it is just another relative path

i hope this helped and didn't just confuse you more