Thursday, 15 August 2013

html - img not displaying in .php file -



html - img not displaying in .php file -

i have basic webpage reason image not appear on webpage. when utilize total url linking external site image appears fine cannot link images i'm hosting locally , have no thought why. here's code:

<html> <header> <link rel="stylesheet" type="text/css" href="common/style.css"> </header> <body> <?php require_once 'common/header.php' ?> <div class="container"> <img src="http://apod.nasa.gov/apod/image/1410/m6sidingspringligustri.jpg" alt="test 1" height="200" width="300"> <img src="1.png" height="200" width="300"> <img src="common/2.png" height="200" width="300"> </div> </body> </html>

anything obvious i'm missing?!?

image files don't display within php files? have there html source file has image tag source value.

there few reasons why image won't display invalid image, file not existing etc. seek re-create src url of browser , should display picture.

if image not display, give thought why not.

php html image

No comments:

Post a Comment