I am using Ubuntu 12.10 and recently have installed xampp 1.8.1. My problem is: image from server can not be shown.
my code is ::
<div class="sideBlock unSung">
<h4>Unsung heroes...</h4>
<a href="#"> <img src="_images/1_full.jpg" alt="Midnight Run" width="99" height="135" /> </a>
<a href="#"><img src="_images/2d7y3ki.jpg" alt="Wyatt Earp" width="99" height="135" /></a>
</div>
here, in my address bar I use
http://localhost/madeTemplet/basicTemplet/templet03.html
and I want to show image after "Unsung heroes" text but it only shown some link and not any image
But when I use the following
file:///opt/lampp/htdocs/madeTemplet/basicTemplet/templet03.html
and images are shown after Unsung heroes text.
It works well in windows platform.
After checking the permissions to access the directory where images are, I get this text in my terminal window ::
sabbir@sabbir-pc:/opt/lampp/htdocs/madeTemplet/basicTemplet/_images$ ls -l
total 300
-rw------- 1 sabbir sabbir 204067 Feb 24 2010 1_full.jpg
-rw------- 1 sabbir sabbir 75789 Nov 13 2009 2d7y3ki.jpg
-rw------- 1 sabbir sabbir 23692 Apr 21 2010 6AB32AE44600435B9DE0FB5EBA24A912.gif
As a new user I can't insert image so you can check the given link as follow :
http://stackoverflow.com/questions/16178342/image-can-not-be-seen-in-htdocs-in-ubuntu-12-10
ls -l
, as Stef noted) ofhtdocs
would be helpful. Also: Please do give screenshots rather than descriptions of visual phenomenons (in this case, the "some link and not ny image") Please edit any further info into your question itself.ls -l
to see who owns the directory.