Asperon Posted August 13, 2007 Share Posted August 13, 2007 does php 5 come with the gd library? if not, I tried to download the latest version, but I don't know where toput the folder with it...and do I have to activate the gd extension in the .ini file? Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/ Share on other sites More sharing options...
Asperon Posted August 13, 2007 Author Share Posted August 13, 2007 where in phpinfo() would I find the gd library?? Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-322892 Share on other sites More sharing options...
lemmin Posted August 13, 2007 Share Posted August 13, 2007 I guess this would tell you if it was installed. http://us2.php.net/gd_info Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-322895 Share on other sites More sharing options...
Asperon Posted August 13, 2007 Author Share Posted August 13, 2007 nothing happens when I put gd_info() ...does that mean I don't have it? Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-322898 Share on other sites More sharing options...
lemmin Posted August 13, 2007 Share Posted August 13, 2007 If you don't get an error, you should have it. Did you do this? var_dump(gd_info()); Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-322902 Share on other sites More sharing options...
Asperon Posted August 13, 2007 Author Share Posted August 13, 2007 nothing happens... Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-322911 Share on other sites More sharing options...
lemmin Posted August 13, 2007 Share Posted August 13, 2007 Well, php.net doesn't say anything about requireing anything. Have you tried to use some image functions? Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-322917 Share on other sites More sharing options...
Asperon Posted August 13, 2007 Author Share Posted August 13, 2007 if I try <?php header("Content-type: image/png"); $im = @imagecreate(110, 20) 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); imagedestroy($im); ?> nothing happens.at one point I got ablank box with the X in it but I don't get the Die message either Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-322918 Share on other sites More sharing options...
Barand Posted August 14, 2007 Share Posted August 14, 2007 where in phpinfo() would I find the gd library?? If it's installed you should get a section in phpinfo() like te attached image [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/64741-gd-library/#findComment-323072 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.