Output system information
<?php
phpinfo();
phpcredits();
echo phpversion() . "<br />";
echo ini_get ("post_max_size") . "<br />";
$myarray = ini_get_all();
print_r($myarray);
echo "<br />";
echo date ("F d Y H:i:s.", getlastmod()) . "<br />";
$curip = $_SERVER['REMOTE_ADDR'];
$myarray = array ();
if (!in_array ($curip, $myarray)){
echo "We insert the IP addy: " . $curip . " into the database";
} else {
echo "The IP addy:" . $curip . " is already in the database.";
}
?>
Related examples in the same category