简体   繁体   English

通过PHP解释GD信息

[英]Interpreting GD info through PHP

I was checking my GD library and when I ran this code :- 我正在检查我的GD库,并在运行此代码时:-

<?php

$a=gd_info();
foreach ($a as $key=>$value){
    echo $key | $value . '<br>';
}
?>

It gave me the following output : 它给了我以下输出:

gunvmwwio~.0.34 compatible)
w~gw~ype Supportw{umtree|y~o}gw>|s~b Supportw}fr~ead Supportw}frreate Support{|gw>Supportq~grupportw~or>Support|r>Supporty~orupport~ks?mapped Japanese Font Support

I know how to get the correct output. 我知道如何获得正确的输出。 But I just want to know the exact meaning of this output. 但我只想知道此输出的确切含义。

First off, that gibberish text you created isn't exactly correct. 首先,您创建的乱码文字并不完全正确。 To properly show the correct values wrap the quotes correctly: 要正确显示正确的值,请正确包装引号:

$a = gd_info();
foreach ($a as $key=>$value){
    echo "$key | $value <br/>";
    // wrap them all including the pipe
}

So that in return you'll get something like this: 这样一来,您将获得如下信息:

// the actual correct output
GD Version |    2.0.36
FreeType Support |  1
FreeType Linkage |  with freetype
T1Lib Support | 
GIF Read Support |  1
GIF Create Support |    1
JPEG Support |  1
PNG Support |   1
WBMP Support |  1
XPM Support |   
XBM Support |   
JIS-mapped Japanese Font Support |

Actually this info is basically same as looking into phpinfo() info on your GD 实际上,此信息与查看GD上的phpinfo()信息基本相同

Sample Output 样本输出

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM