PHP - Image not displayed

December 2016



Issue


I have problem with my PHP page. The images inserted are not displayed in my browser when I run my the page on my WAMP server. Here is the code:
<img src="file:///c:/wamp/www/my_super_site/images/my_picture.jpg" width="261" height="95" title="nature" /> 

Solution


The URL must begin with http://localhost/

Thanks to arthezius for this tip.

Related :

This document entitled « PHP - Image not displayed » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.