Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

php how do I display an image?

Posted on 2014-10-26
3
136 Views
Last Modified: 2014-10-26
The url is http://lindamatthews.net/test/open.php

and open.php is

<?php error_reporting(E_ALL);?>
<?php include("header.php"); ?>
<?php include("menu.php"); ?>
<?php
echo "<div class=\"content\">";
echo "<img src=\"art/zen20.jpg\" style=height:425px>";
<?php include("footer.php"); ?>
?>

All I get is a blank screen. No image.
0
Comment
Question by:padmasambhava
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40405069
Change your code to the following, check the paths for the included files - what do you get?

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

include("header.php");
include("menu.php");

echo '<div class="content">';
echo '<img src="art/zen20.jpg" style="height:425px">';
echo '</div>';

include("footer.php");
?>

Open in new window

0
 
LVL 24

Expert Comment

by:mankowitz
ID: 40405083
also, try to view source. That might give you a hint.
0
 

Author Closing Comment

by:padmasambhava
ID: 40405164
Thanks to both of you!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question