Baumeister Mediasoft Engineering BME - Baumeister Mediasoft Engineering  PHP Function phpinfo (INFO) - English Version PHP-Funktion phpinfo (INFO) - Deutsche Version
Baumeister Mediasoft Engineering
Bartels AutoEngineerCarLogServicesResourcesCompany ProfileContact Us
Baumeister Mediasoft Engineering » Resources » Web Development » PHP » Functions » phpinfo
PHP Functions

PHP Function phpinfo (INFO)

PHP - PHP Hypertext Preprocessor

phpinfo() creates a web page with comprehensive system environment information such as operating system and web server environment, PHP configuration, paths, global and local values of configuration options, HTTP headers, etc. Because every system is setup differently, phpinfo() is often used to check configuration settings and predefined system variables. phpinfo() is also a valuable debugging tool as it lists GET, POST, cookie, environment and server data.

It doesn't come as a surprise that the following script is often the first PHP script a PHP developer runs on a new client system:

<?php
phpinfo
();
?>

The above script is usually saved under a file name such as phpinfo.php. Since phpinfo() exposes information which might help hackers to break into a system, it is not recommended to provide easy and/or permanent public access to phpinfo() scripts.

Related Topics

Baumeister Mediasoft Engineering » Resources » Web Development » PHP » Functions » phpinfo

PHP Function phpinfo (INFO) • © 2023 Manfred Baumeister • Updated: 02 October 2010, 23:36 [UTC]

Baumeister Mediasoft Engineering, Clontarf, Dublin 3, D03 HA22, Ireland
© 2023 Manfred Baumeister

PHP Function phpinfo (INFO) - English Version PHP-Funktion phpinfo (INFO) - Deutsche Version