Google Blogoscoped

Forum

FireFox not rendering image created by php

Mother Earth [PersonRank 1]

Tuesday, May 29, 2007
12 years ago2,330 views

Hi,
I am developing a photo album running in windows apache 5.0 , PHP, mYsql (local window system). when i create a thumbnail image in directory and then dynamic creating a img tag where i input the image path ,but the image does not render in firefox. a white box appears with alt keyword.when i right click and do view image it tells "firefox cannot able to open this address protocols (c) doesnt associate with any program.

Philipp Lenssen [PersonRank 10]

12 years ago #

Mother Earth, it should be of no difference to the browser how you create the image – in other words, it looks like your PHP code is creating a faulty image. For instance, make sure you serve the correct content/ mime type using PHP's "header" function.

Mother Earth [PersonRank 1]

12 years ago #

thank philip i am just echoing the img tag with the url pointin to thumbnail directory. it works well with IE

Philipp Lenssen [PersonRank 10]

12 years ago #

Can you post the image URL (if it's public)?

Mother Earth [PersonRank 1]

12 years ago #

philipp why dont u enable tag "code" so that we can post the source code

screenshot for the image

<img src="http: //ssuresh83.googlepages.com/say.JPG"/ >

working locally will have any problem .
  
[Added space after http... -Philipp]

Mother Earth [PersonRank 1]

12 years ago #


ssuresh83.googlepages.com/say. ...

Philipp Lenssen [PersonRank 10]

12 years ago #

What I meant is can you post the image URL of the image that is causing problems...

Mother Earth [PersonRank 1]

12 years ago #

it is not public yet.

Mother Earth [PersonRank 1]

12 years ago #

ok philip . tell me this.

i am just displaying the image . for each image that i am displaying as thumbnail , i have to show 9 images per page.do i have to send header (Content-Type:image/jpeg) dependin on image type.

This thread is locked as it's old... but you can create a new thread in the forum. 

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!