note 35358 deleted from function.gd-info by vincent
| From: | vincent@php.net | Date: | Thu, 28 Aug 2003 14:05:49 +0000 |
| Subject: | note 35358 deleted from function.gd-info by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55246@lists.php.net to get a copy of this message | ||
Note Submitter: Elie De Brauwer <elie@de-brauwer.be>
----
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