note 91127 added to reserved.variables.server
| From: | Myrddin at osu1 dot php dot net | Date: | Tue, 26 May 2009 18:00:08 +0000 |
| Subject: | note 91127 added to reserved.variables.server | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156029@lists.php.net to get a copy of this message | ||
To extend a bit on the table posted by jeffwk. You can use this piece of code to print all $_SERVER
variables in a table with some mouse over effects to increase readability.
<?php
echo '<table style="border-collapse: collapse;">';
foreach ($_SERVER as $key => $val)
echo '<tr onMouseOver="this.style.backgroundColor=\'AAAABB\';"
onMouseOut="this.style.backgroundColor=\'transparent\';"><td
style="font-weight: bold; border-right: 2px solid
#000000;">'.$key.'</td><td style="width:
100%;">'.(is_array($val)?nl2br(print_r($val,true)):$val).'</td></tr>';
echo '</table>';
?>
----
Server IP: 209.41.74.194
Probable Submitter: 195.241.221.64
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.server.php
Edit -- https://master.php.net/note/edit/91127
Del: integrated -- https://master.php.net/note/delete/91127/integrated
Del: useless -- https://master.php.net/note/delete/91127/useless
Del: bad code -- https://master.php.net/note/delete/91127/bad+code
Del: spam -- https://master.php.net/note/delete/91127/spam
Del: non-english -- https://master.php.net/note/delete/91127/non-english
Del: in docs -- https://master.php.net/note/delete/91127/in+docs
Del: other reasons-- https://master.php.net/note/delete/91127
Reject -- https://master.php.net/note/reject/91127
Search -- https://master.php.net/manage/user-notes.php