[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2 and php rendering

Bernd Prager wrote:


I'm trying to use some Flickr images on my website and wrote a php
script that gets me the link.
Within the html page I want to use now a tag like <img
src="/php/getImage.php" /> for the image.
If I call the script directly in the browser with
"http://myserver/php/getImage.php"; I get the desired image.
But when I try to include the img tag above in the /index.html file
above it doesn't get rendered.
What's in the PHP script? It has to pretend like it's an image, when giving the HTTP response. For example you might have to do something like:

| Header("Content-Type: image/gif");

In your script.


Reply to: