Saturday, February 25, 2012

PHP - Server Variables

Description: This PHP script will show information about your server environment for PHP using $_SERVER variable.

<?php
/**
* PHP Server and Execution Environment Information
* Special Thanks to Myrddin and Jeffwk.
*/
echo '<h1>
<div align="center">
Server And Execution Environment Information</div>
</h1>';
echo '<table align="center" border="3">';
foreach ($_SERVER as $key => $value) {
 if (!$value) {
  $value = '-';
 }
 echo '<tbody><tr>';
 echo '<td>'.$key.'</td>'.'<td>'.$value.'</td>';
 echo '</tr>';
}
echo '</tbody></table>';
?>

Artikel Terkait

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...