Problem with displaying image in php 5.2 through a script

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
brozz
Forum Newbie
Posts: 2
Joined: Sat Sep 05, 2009 2:42 am

Problem with displaying image in php 5.2 through a script

Post by brozz »

I recently installed PHP5.2.9 and PHP5.3 with Xampp on my system.

I have a problem with displaying images from a script that works with GD and mysql. This same script works perfectly well using PHP5.1.

Find the property reports by Firefox.
This is the property report that displayed okay on PHP5.1
This is the property report that displayed okay on PHP5.1
ScreenShot_Photo_Error_Ok.jpg (55.54 KiB) Viewed 10507 times
This is the property report that displayed okay on PHP5.1
This is the property report that has error on PHP5.3
This is the property report that has error on PHP5.3
ScreenShot_Photo_Error_Error.jpg (57 KiB) Viewed 10508 times
This is the property report that has error on PHP5.3

Help and insight will be highly appreciated

Thanks,
Brozz
User avatar
Salaria
Forum Commoner
Posts: 34
Joined: Fri Feb 13, 2009 2:50 am
Location: India
Contact:

Re: Problem with displaying image in php 5.2 through a script

Post by Salaria »

Make sure that GD library is enabled in PHP. You can check with phpinfo(). If its enabled then please attach screen shot of GD info within phpinfo for more help.
brozz
Forum Newbie
Posts: 2
Joined: Sat Sep 05, 2009 2:42 am

Re: Problem with displaying image in php 5.2 through a script

Post by brozz »

Thanks Salaria.

This is the screenshot of the GD section of phpinfo().
Attachments
ScreenShot_Photo_phpinfo_GD_lib.jpg
ScreenShot_Photo_phpinfo_GD_lib.jpg (100.65 KiB) Viewed 10474 times
Post Reply