jd2007 Posted July 24, 2007 Share Posted July 24, 2007 ok...i coded this : <?php include("C:\AppServ\php5\ext\php_gd2.dll"); $im = @imagecreate(10, 2) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 0, 0, 0); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng($im); ?> the output is this : Warning: Unexpected character in input: '' (ASCII=16) state=1 in C:\AppServ\php5\ext\php_gd2.dll on line 5132 Parse error: syntax error, unexpected ',' in C:\AppServ\php5\ext\php_gd2.dll on line 5132 if i dont include this: include("C:\AppServ\php5\ext\php_gd2.dll"); the output is a blank page...why ? pls help... Link to comment https://forums.phpfreaks.com/topic/61481-why-do-i-have-error-in-php_gd2dll/ Share on other sites More sharing options...
vbnullchar Posted July 24, 2007 Share Posted July 24, 2007 why do you want to include a DLL file? if you want to enable the GD function go to your php.ini then uncomment extension=php_gd2.dll Link to comment https://forums.phpfreaks.com/topic/61481-why-do-i-have-error-in-php_gd2dll/#findComment-306027 Share on other sites More sharing options...
jd2007 Posted July 24, 2007 Author Share Posted July 24, 2007 i did that...but it's still not working. Link to comment https://forums.phpfreaks.com/topic/61481-why-do-i-have-error-in-php_gd2dll/#findComment-306029 Share on other sites More sharing options...
vbnullchar Posted July 24, 2007 Share Posted July 24, 2007 did you specify where php will look for the extensions? in your php.ini, put this extension_dir="C:/AppServ/php5/ext/" Link to comment https://forums.phpfreaks.com/topic/61481-why-do-i-have-error-in-php_gd2dll/#findComment-306031 Share on other sites More sharing options...
jd2007 Posted July 24, 2007 Author Share Posted July 24, 2007 pls tell me on which section of php.ini to i need to specify the directory for php to look for... Link to comment https://forums.phpfreaks.com/topic/61481-why-do-i-have-error-in-php_gd2dll/#findComment-306038 Share on other sites More sharing options...
vbnullchar Posted July 24, 2007 Share Posted July 24, 2007 extension_dir="C:/AppServ/php5/ext/" Link to comment https://forums.phpfreaks.com/topic/61481-why-do-i-have-error-in-php_gd2dll/#findComment-306063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.