Unable to obtain GD Library Information & lt; html & gt; & lt; head & gt; & lt; meta & nbsp; http-equiv = "conten-type" & nbsp; content = "text/html; & nbsp; charset = utf-8" & g cannot obtain the GD Library Information
First PHP program (get server information)
$ Sysos = $ _ SERVER ["SERVER_SOFTWARE"];
$ Sysversion = PHP_VERSION;
// The following two codes connect to the MySQL database and obtain the MySQL database version information:
Mysql_connect ("localhost", "root", "kxteb0cc ");
$ Mysqlinfo = mysql_get_server_info ();
// Obtain the GD library information from the server
If (function_exists ("gd_info ")){
$ Gd = gd_info ();
$ Gdinfo = $ gd ['gd version'];
} Else {
$ Gdinfo = "unknown ";
}
// Check whether FreeType fonts are supported in the GD Library
$ Freetype = $ gd ["FreeType Support"]? "Supported": "not supported ";
// Obtain the remote file from the PHP configuration file
$ Allowurl = ini_get ("allow_url_fopen ")? "Supported": "not supported ";
// Obtain the maximum upload limit from the PHP configuration file
$ Max_upload = ini_get ("file_uploads ")? Ini_get ("upload_max_filesize"): "Disabled ";
// Obtain the maximum execution time of the script from the PHP configuration file
$ Max_ex_time = ini_get ("max_execution_time"). "seconds ";
// The following two get server time, the mainland China is the UTC + 8 time, set the time written as Etc/GMT-8
Date_default_timezone_set ("ETC/GMT-8 ");
$ Systemtime = date ("Y-m-d H: I: s", time ());
/*************************************** *********************/
/* Output the obtained server information to the client browser in the form of an html table */
/*************************************** *********************/
Echo"
";
Echo"System Information";
Echo" Web server: $ Sysos ";
Echo" PHP version: $ Sysversion ";
Echo" MySQL version: $ Mysqlinfo ";
Echo" GD Library version: $ Gdinfo ";
Echo" FreeType $ Freetype ";
Echo" Remote File Retrieval: $ Allowurl ";
Echo" Maximum upload limit: $ Max_upload ";
Echo" Maximum execution time: $ Max_ex_time ";
Echo" Server Time: $ Systemtime ";
Echo"";
?>
Please help me to see what went wrong. I followed the book. if there were no other problems, the GD Library version could not be obtained. The webpage for this row is blank.
------ Solution --------------------
$ Gdinfo = $ gd ['gd version'];