gd_info 


gd apg

GETS the information about the currently installed GD library



<?php

array gd_info ()

?>

  1 EXERCISE   

<style>
@font-face { font-family: Philo; src: url(attf/philo/Philosopher-Italic.ttf);}

.t1 { font-family: Philo; background-color:#00CCFF; font-size:12px; text-align:center;}
.t2 { font-family: Philo; background-color:white; font-size:12px; }
.t14 { font-family: Philo; background-color:#00CCFF; font-size:16px; text-align:center;}
.circ { font-size: 12px; padding:5px; border: 1px solid #cccccc; border-radius: 10px; overflow-x:scroll; font-style:italic; background:#FFFFFF; }
</style>
<div class="circ"><table width="100%" cellspacing="5" 
cellpadding="5" border="1" align="center"><tbody>
<tr class="t14"><td colspan="2">
<?php echo 'PHP ' PHP_VERSION  '<br>' 
PHP_VERSION_ID?></td></tr>
<tr class="t1"><td>INFO</td><td>VALUE</td></tr>

<?php

foreach (gd_info()  as $gdinf => $gdf)
{   
if(
$gdf == 1)
{
echo 
"<tr class=\"t2\"><td>$gdinf</td><td>$gdf</td></tr>";
}
else
{
echo 
"<tr class=\"t2\"><td>$gdinf</td><td>$gdf</td></tr>";    
}
}

?>
<tr class="t1"><td colspan="2">ed48</td></tr></tbody></table></div><br>


 RESULT   

PHP 8.2.18
80218
INFOVALUE
GD Versionbundled (2.1.0 compatible)
FreeType Support1
FreeType Linkagewith freetype
GIF Read Support1
GIF Create Support1
JPEG Support1
PNG Support1
WBMP Support1
XPM Support1
XBM Support1
WebP Support1
BMP Support1
AVIF Support
TGA Read Support1
JIS-mapped Japanese Font Support
ed48