grim918
January 2nd, 2006, 05:53 PM
im having a small problem with displaying images. when i use the <img> tag to display images, sometimes they wont load when i try to view the page.
i was wondering if images or the directory that they are in need to have permissions set so that the images will load. here is an example of something that i tried:
i created an images directory and i put a picture in there image_name.gif
then i created a copy of that same picture and put it in the same directory but i renamed the picture to 001.gif. here is how i did this
sudo cp /images/image_name.gif /images/001.gif
then i check to see if the picture is in the directory and yes it is.
i then create a simple html page to display the images.
<img src="/images/image_name.gif" />
<img src="/images/001.gif" />
this is where i run into a problem. image_name.gif will load and display on the browser but 001.gif will not load. does anyone know what is going on here
i was wondering if images or the directory that they are in need to have permissions set so that the images will load. here is an example of something that i tried:
i created an images directory and i put a picture in there image_name.gif
then i created a copy of that same picture and put it in the same directory but i renamed the picture to 001.gif. here is how i did this
sudo cp /images/image_name.gif /images/001.gif
then i check to see if the picture is in the directory and yes it is.
i then create a simple html page to display the images.
<img src="/images/image_name.gif" />
<img src="/images/001.gif" />
this is where i run into a problem. image_name.gif will load and display on the browser but 001.gif will not load. does anyone know what is going on here