So, i'm guessing this works too:
<img src="uploads/shreedhan/sth.jpg" />
Yeah this also works.
The reason the pics arent working is because you're going away from your htdocs. To use pics from elsewhere on your pc use the direct path to that.
e.g
[php]
C:/xampp/htdocs/images/DockEdit.jpg
C:/some_dir/another_dir/_images/image.jpg
[/php]
Actually, I am providing full path. I use linux so the path for the image starts from root '/'.
/var/www/html is the default directory to host webpage (as it is htdocs in case of windows)
Even though I provide full path '/var/www/html/uploads/shreedhan/edited_shreedhan2.jpg' , it's not showing the image.
But if I provide 'uploads/shreedhan/edited_shreedhan2.jpg', it's showing the image, because it's in the same directory where pictures.php (the file with including above images) is stored.
I haven't been able to include images outside of /var/www/html