Re: ImageCreateFromPNG

From: Date: Fri, 03 Jan 2003 16:30:02 +0000
Subject: Re: ImageCreateFromPNG
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-130115@lists.php.net to get a copy of this message
Roy van Arem wrote:
In gd section..... hm... I always used to use PHP 3. something and that didn't have half the variables I can set in php4.3...... anyway this is phpinfo: http://62.142.245.64/g/gheos.com/test.php No gd section or png mentioned on that page.
<br /> <b>Fatal error</b>: Call to undefined function: imagecreatefrompng() in This error message is telling you that gd was not entered in the ./configure stage of compiling php.
If I put exactly the same script on my ISP's server, then it works without any problem! But on my pc it just does not! If you look at a phpinfo() on your isp's server then gd must be present.
You need to recompile php, or get a distribution of it with gd present. As I only use php under linux I'm not the best person to advise where to get a suitable set of windows binaries. I suggest a search of the archives of this list as this question comes up occasionally, or try a google search. (Of course you could just load linux, but I guess that is not the answer you are looking for :-) Hope this helps Chris

« previous php.general (#130115) next »