Solved

php how do I display an image?

Posted on 2014-10-26
3
137 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
[X]
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
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Link failure 16 65
How to get this library to work load? 8 38
Pull Variable from URL  Use php template 1 32
assigning javascript variable to php variable 8 41
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

749 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