note 71836 added to reserved.variables

From: Date: Mon, 18 Dec 2006 18:27:23 +0000
Subject: note 71836 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-120753@lists.php.net to get a copy of this message
If you quickly want know what your server's Environment variables are you can use this code: <?php function get_all_env_var($example=FALSE) { foreach($_ENV as $env => $value) { if($example == TRUE) { echo "\$_ENV['$env'] "; } else { echo "$env "; } echo "= <!-- => --> $value \n"; } // End Foreach } // End Function echo "<pre>"; get_all_env_var("", TRUE); echo "</pre>"; ?> This also could be used to find all your Server variables by changing all the $_ENV to $_SERVER. Hope this helps someone. ---- Server IP: 216.194.113.175 Probable Submitter: 69.235.217.107 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- https://master.php.net/note/edit/71836 Del: integrated -- https://master.php.net/note/delete/71836/integrated Del: useless -- https://master.php.net/note/delete/71836/useless Del: bad code -- https://master.php.net/note/delete/71836/bad+code Del: spam -- https://master.php.net/note/delete/71836/spam Del: non-english -- https://master.php.net/note/delete/71836/non-english Del: in docs -- https://master.php.net/note/delete/71836/in+docs Del: other reasons-- https://master.php.net/note/delete/71836 Reject -- https://master.php.net/note/reject/71836 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120753) next »