PHP - phpinfo
Trieda
Metóda - phpinfo
(PHP 4, PHP 5, PHP 7)
The phpinfo() function is used for displaying a detail
information about the PHP's configuration.
Warning: Do not output phpinfo() in public
sections of your website, because it contains information that could be
exploited by hackers.
**Note: ** In the CLI mode (the Command Line Interface), the function returns paintext instead of HTML code.
Procedurálne
- function phpinfo (int $what = INFO_ALL) : bool
Parametre
| Názov | Dátový typ | Predvolená hodnota | Popis |
|---|---|---|---|
| $what | int | INFO_ALL | Is used to specify which information should be printed. Constants can be
combined using the
|
Mávratovej hodnoty
Vracia: bool
Returns true on success, false otherwise.
Príklady
<?php
phpinfo(); // displays all the information
phpinfo(INFO_LICENSE); // displays the information about the license
phpinfo(INFO_LICENSE | INFO_CREDITS); // displays the information about the license and credits
Súvisiace manuály
- function ini_set (string $varname, string $newvalue) : string
- function phpversion (string $extension) : string
