0

Hey ppl. I use apach and i've got a problem that i cant fix
when i write this code ..

<img 
src="Z:/home/localhost/www/ImageGallery/Images/mmbg3xmx3g.gif"
 width="100px" height="100px" name="imgPreview" />

no image is shown. Whats wrong? The image surely exists in the specified path.

And one more problem with this is that for some images the same code works.

Edited by kracko: n/a

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by kracko
1

hmm... try checking the file extension (if it's .gif or .png or .jpeg)

also try using a more relative path to the image. for ex. your code is in the www folder, then <img src="./ImageGallery/Images/mmbg3xmx3g.gif" />

1

Hint: Path may be incorrect!
src="/ImageGallery/Images/mmbg3xmx3g.gif"
supposing that you have your www directory at src="Z:/home/localhost/www/ and images in subdir ImageGallery/

Using relative paths is easier than absolute paths

Edited by Stefano Mtangoo: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.