PHP – Server and Execution Environment Information

Filed under php
Tagged as , , , , , , ,

Author: slac3dork
site: http://snippet.c0de.me
summary: Php code to get server and execution environment information. Based on $_SERVER php manual.

<?php

/**
  _________      .__       .____   _______
 /   _____/ ____ |__|_____ |    |  \   _  \    ____
 \_____  \ /    \|  \____ \|    |  /  /_\  \  / ___\
 /        \   |  \  |  |_> >    |__\  \_/   \/ /_/  >
/_______  /___|  /__|   __/|_______ \_____  /\___  /
        \/     \/   |__|           \/     \//_____/  

http://snippet.c0de.me

slac3dork@gmail.com
*/

/**
* PHP Server and Execution Environment Information
* Coded By slac3dork
* Special Thanks to Myrddin and Jeffwk who are giving me inspiration.
*/
echo '<h2><p align="center">Server And Execution Environment Information</p></h2>';
echo '<table border="3" align="center">';
foreach ($_SERVER as $key => $value) {
	if (!$value) {
		$value = '-';
	}
	echo '<tr>';
	echo '<td>'.$key.'</td>'.'<td>'.$value.'</td>';
	echo '</tr>';
}
echo '</table>';
?>



php,logo,pixel badge,badge

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*