Jump to content

HOW do I display a local image?


dkperez

Recommended Posts

I want to display a local image from a browser.  Without wasting the time on a urination festival about "why do I want to display a local file" or "why not download it from the server", trust me that I want to display a local image.....

 

php sets everything up, so I have the full path and all for the image.  In the form I have:

 

<a><img src="c:/xampp/htdocs/images/xxx.jpg" alt="NO IMAGE AVAILABLE"></a>

 

and all I get is "NO IMAGE AVAILABLE".  I rummaged around, and found that wiki insists that the correct syntax is:

 

<a><img src="file:///c:/xampp/htdocs/images/xxx.jpg" alt="NO IMAGE AVAILABLE"></a>

 

but I get the same "NO IMAGE AVAILABLE"......

 

So, from a plain old, regular html file that has a form in it, HOW do I display this image?

 

Link to comment
https://forums.phpfreaks.com/topic/197005-how-do-i-display-a-local-image/
Share on other sites

I've already done all the stuff in the replies......  I don't get an image.....

 

The full-sized images to be displayed are located in a folder on the LOCAL system.  The browser is running from the web server, and all the necessary full path and file information is available there....  BUT,  to simplify things, here's a simplified version of my html that (AS NEAR AS I CAN TELL) should display an image.....  It DOESN'T.......

 

I need someone to tell me what's wrong with the syntax:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

 

  <head>

  </head>

<body>

    <div>

      <form>   

<a><img src="file:///d:/dew.jpg" alt="NO IMAGE AVAILABLE"></a>

      </form>

    </div>

  </body>

</html>

 

I've even attached a much smaller, low quality version of the dew.jpg file.......

 

What have I got wrong in here?

 

[attachment deleted by admin]

OK, I"ve either made this EASIER or a LOT HARDER......  I found out last night that the facility where the meeting is held, and where the slideshow needs to be shown HAS NO WI-FI........  So, there's no Internet connection that'll do me any good.......

 

SO, I"m going to have to rethink this whole mess...  Probably just run the browser locally, and do something with a php slideshow..... 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.