question on readfile()

From: vickie_raven (vickie_raven_at_hotmail.com)
Date: 03/29/04


Date: Mon, 29 Mar 2004 14:13:02 -0500


This works fine, so i know that the path is ok.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<img src="/ccphotos/dec/page1/images/pics/0001.jpg">
</body>
</html>

but when i try this script i get an error

<?
header("Content-type: image/jpeg");
$path = "/ccphotos/dec/page1/images/pics/0001.jpg";
readfile($path);
?>

Thank you in advance!!

Vickie



Relevant Pages

  • Re: More than a single script block within a single HEAD and BODY
    ... Can there be more than a single script block in a given HEAD tag? ... The W3C HTML validator lets you paste markup directly into the validation form. ...
    (comp.lang.javascript)
  • Re: Passing variables from Javascript to ASP
    ... <script language="JavaScript"> ... Ray at home ...
    (microsoft.public.inetserver.asp.general)
  • RE: Moving Data
    ... * I need to collect the input data on exampl1.aspx by hitting the review button. ... <script runat="server"> ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: newby Q about using Google Maps with ASP.Net 2.0
    ... Google recommends placing the script in the head and then running it ... In master pages you could conceivably add the script to the head ... ASP.Net does is render HTML to a browser from the server (all that you need ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: What am I doing wrong in updating other frames
    ... (no other frameset file opened in one of your frames) ... "http://www.w3.org/TR/html4/frameset.dtd"</a>;> <HEAD> Table of ContentsIndex ... or other type if script is other than JS ...
    (comp.lang.javascript)