note 126957 added to reserved.variables.server
| From: | admin at tuscoss dot com | Date: | Fri, 25 Mar 2022 14:36:33 +0000 |
| Subject: | note 126957 added to reserved.variables.server | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217768@lists.php.net to get a copy of this message | ||
this one converts arrays to strings, and may look better with alternate colored rows.
<?php
echo '<style>tr:nth-child(even) {background-color: #f2f2f2;}div
{width:100%;text-align:center;} table {width:50%;margin: 0 auto; border:1px black solid} td
{padding:10px}</style>';
echo '<div><p> Server and execution environment
information</p><table>' ;
foreach ($_SERVER as $parm => $value) {
echo '<tr>';
echo '<td>'.$parm.'</td>';
echo '<td>';
if (is_array($value)) echo implode(', ', $value);
else echo $value;
echo '</td></tr>';
}
echo '</table></div>' ;
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.135 (proxied: 37.150.245.175)
----
Manual Page -- https://php.net/manual/en/reserved.variables.server.php
Edit -- https://main.php.net/note/edit/126957
Del: integrated -- https://main.php.net/note/delete/126957/integrated
Del: useless -- https://main.php.net/note/delete/126957/useless
Del: bad code -- https://main.php.net/note/delete/126957/bad+code
Del: spam -- https://main.php.net/note/delete/126957/spam
Del: non-english -- https://main.php.net/note/delete/126957/non-english
Del: in docs -- https://main.php.net/note/delete/126957/in+docs
Del: other reasons-- https://main.php.net/note/delete/126957
Reject -- https://main.php.net/note/reject/126957
Search -- https://main.php.net/manage/user-notes.php