Welcome to the Linux community forum and interact with 2 million technical staff to get system information functiongetSystemInfo () {$ systemInfoarray (); System $ systemInfo [OS] PHP_ OS; PHP version $ systemInfo [phpversion] PHP_VERSION; Apache version $ systemInfo [apach
Welcome to the Linux community forum and interact with 2 million technical staff> go to function getSystemInfo () {$ systemInfo = array () to obtain system information (); system $ systemInfo ['OS'] = PHP_ OS; // PHP version $ systemInfo ['phpversion'] = PHP_VERSION; // Apache version $ systemInfo ['apach
Welcome to the Linux community forum and interact with 2 million technicians>
Obtain system information
Function getSystemInfo ()
{
$ SystemInfo = array ();
System
$ SystemInfo ['OS'] = PHP_ OS;
// PHP version
$ SystemInfo ['phpversion'] = PHP_VERSION;
// Apache version
$ SystemInfo ['apacheversion'] = apache_get_version ();
// ZEND version
$ SystemInfo ['zendversion'] = zend_version ();
// GD related
If (function_exists ('gd _ info '))
{
$ GdInfo = gd_info ();
$ SystemInfo ['gdsupport '] = true;
$ SystemInfo ['gdversion'] = $ gdInfo ['gd version'];
}
Else
{
$ SystemInfo ['gdsupport '] = false;
$ SystemInfo ['gdversion'] = '';
}
// Security Mode
$ SystemInfo ['safemode'] = ini_get ('safe _ mode ');
// Register global variables
$ SystemInfo ['registerglobals'] = ini_get ('register _ globals ');
// Enable magic reference
$ SystemInfo ['magicquotes '] = (function_exists ("get_magic_quotes_gpc") & get_magic_quotes_gpc ());
// Maximum size of uploaded files
$ SystemInfo ['maxuploadfile'] = ini_get ('upload _ max_filesize ');
// Maximum memory occupied by script running
$ SystemInfo ['memorylimit '] = get_cmd_var ("memory_limit ")? Get_cmd_var ("memory_limit "):'-';
Return $ systemInfo;