i want to imagecreatefrompng

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
blomberg
Forum Newbie
Posts: 6
Joined: Sun Sep 20, 2009 8:28 am

i want to imagecreatefrompng

Post by blomberg »

when i want use this function i getting this mesage:
Call to undefined function imagecreatefrompng()
what am i doing for this problem?
tnx
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: i want to imagecreatefrompng

Post by requinix »

What you're doing is trying to use a function that doesn't exist.

What you should be doing to fix it is make sure you have the GD extension enabled. In php.ini uncomment the line

Code: Select all

;extension=php_gd2.*
and restart your server.
uyewq
Forum Newbie
Posts: 22
Joined: Thu Sep 17, 2009 6:21 am

Re: i want to imagecreatefrompng

Post by uyewq »

hi tasairis,
i am not sure but maybe you do not have GD Library support in your server.
You should better google about GD library, php image creating ...

You can check your php info with

Code: Select all

<?php echo phpinfo(); ?>
bye
Post Reply