Output system information : ini_get_all « Utility Function « PHP






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

1.Get information about PHP settings by ini_get() function: string ini_get ( string varname )
2.Get individual information about the current PHP settings