makiz63 Posted February 26, 2007 Share Posted February 26, 2007 Hello I am new to Php. I am creating an e-commerce website. I get the following error:Fatal error: Call to undefined function: imagecreatetruecolor() in c:\program files\easyphp1-8\www\webshop\plaincart\admin\library\functions.php on line 223 here is the source code for line 223 in functions.php $dest = imagecreatetruecolor($w, $h); Your help will be much appreciated. Link to comment https://forums.phpfreaks.com/topic/40209-call-to-undefined-function-imagecreatetruecolor/ Share on other sites More sharing options...
chrisuk Posted February 26, 2007 Share Posted February 26, 2007 well it's telling you that the function does not exist. Have you defined this elsewhere? If it is in a different file it will be necessary to include it, eg. include ("functions.php"); Link to comment https://forums.phpfreaks.com/topic/40209-call-to-undefined-function-imagecreatetruecolor/#findComment-194543 Share on other sites More sharing options...
nloding Posted February 26, 2007 Share Posted February 26, 2007 It's a normal PHP function, so you don't have to define it, but there are some prereq's ... Do you have PHP 4.0.6 or above? If yes, then do you have the correct version of the GD module installed? If no, that's your problem. http://us3.php.net/imagecreatetruecolor http://us2.php.net/gd Link to comment https://forums.phpfreaks.com/topic/40209-call-to-undefined-function-imagecreatetruecolor/#findComment-194545 Share on other sites More sharing options...
makiz63 Posted March 1, 2007 Author Share Posted March 1, 2007 Thank you it all has worked Link to comment https://forums.phpfreaks.com/topic/40209-call-to-undefined-function-imagecreatetruecolor/#findComment-196805 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.