PHP/Utility Function/ini get all

Материал из Web эксперт
Перейти к: навигация, поиск

Get individual information about the current PHP settings

   <source lang="html4strict">

string ini_get (string varname) <?php

 echo ini_get ("post_max_size") . "
"; $myarray = ini_get_all(); print_r($myarray);

?>

 </source>
   
  


Get information about PHP settings by ini_get() function: string ini_get ( string varname )

   <source lang="html4strict">

<?php

   echo ini_get ("post_max_size") . "
"; $myarray = ini_get_all(); print_r($myarray);

?>

 </source>
   
  


Output system information

   <source lang="html4strict">

<?php

 phpinfo();
 phpcredits();
 
 echo phpversion() . "
"; echo ini_get ("post_max_size") . "
"; $myarray = ini_get_all(); print_r($myarray); echo "
"; echo date ("F d Y H:i:s.", getlastmod()) . "
"; $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."; }

?>

 </source>