PDA

View Full Version : Full path name problems


The General
11th April 2007, 17:25
im having a newbe problem... i think!

i am trying to pull a picture up on a page using its full pathname from the index.html

code im using:

<img src="var/www/web4/web/Emailpic.jpg" etc..etc

when i do this i get the little box with a red cross in it and the picture place holder

if i use:

<img src="Emailpic.jpg" etc..etc

i can see the picture fine.

can you tell me if full path names are supported or am i just missing something realy simple!

Kind Regards

Bill

Hawker
11th April 2007, 22:11
Full path names are only needed when the image resides in a place other than the page it displays on.

Example: The image is in a directory called "images". The full path name would then be
img src=<"http://www.sitename.tld/images/imagename.jpg">.

You should never use the server path names in HTTP pages.

The General
12th April 2007, 13:14
Thanks for that, works fine now. Sometimes the simple stuff can really trip us up!