note 35358 added to function.gd-info

From: Date: Thu, 28 Aug 2003 14:00:41 +0000
Subject: note 35358 added to function.gd-info
Groups: php.notes 
Request: Send a blank email to php-notes+get-55244@lists.php.net to get a copy of this message
NOTE TO EDITOR: is it possible to edit my previous note the function contains a little error it should be: function describeGDdyn(){ echo "<ul>"; echo "<li>GD support: "; if(function_exists("gd_info")){ echo "<font color=\"#00ff00\">yes</font>"; $info = gd_info(); $keys = array_keys($info); echo "</li>\n<li>". $keys[0] .": " . $info[$keys[0]]; for($i=1;$i<count($keys);$i++){ echo "</li>\n<li>".$keys[$i] .": " . yesNo($info[$keys[$i]]); } }else{ echo "<font color=\"#ff0000\">no</font>"; } echo "</li></ul>"; } The line before the for is added and the for should be $i=1 instead of $i=0. Sorry for any inconvenience, this was the only way i could find to contact you ---- Manual Page -- http://www.php.net/manual/en/function.gd-info.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35358 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35358&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35358&report=yes

« previous php.notes (#55244) next »