note 71836 deleted from reserved.variables by philip

From: Date: Wed, 21 Feb 2007 15:48:49 +0000
Subject: note 71836 deleted from reserved.variables by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123635@lists.php.net to get a copy of this message
Note Submitter: ---- 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.

« previous php.notes (#123635) next »