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... Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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/" Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted July 24, 2007 Share Posted July 24, 2007 extension_dir="C:/AppServ/php5/ext/" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.