Google Blogoscoped

Forum

Problem Displaying image in Firefox

Dennis [PersonRank 0]

Saturday, June 16, 2007
17 years ago2,683 views

i have a local server runnin in my computer . when i try to dynamically create image using php, the image is not rendered in FF browser . i tried using img src=file:// but only alt tag appears.

Tue Abrahamsen [PersonRank 7]

17 years ago #

You probably dont output the image correct in PHP.

Suresh S [PersonRank 10]

17 years ago #

i want show the gallery of images . do u mean i need to use header('Content-Type:image/'); my gallery consist of other types such as png,gif

Roger Browne [PersonRank 10]

17 years ago #

You do need to get the Content-Type correct, to allow generated images to display properly. But also, you shouldn't be using "img src=file".

You said you have a local server on your computer. This should have a name, most likely "localhost". Try something like this: "img src=http://localhost/..." (where the part after 'localhost' is a pathname relative to your webserver's root content directory).

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!