PHP info
Posted by - NA -, Last modified by on 11 March 2010 05:09 AM
|
|
You can use the function phpinfo() to know the PHP details. The phpinfo file outputs a large number of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP enviromment, OS version information, paths, master and localvalues of configuration options. HTTP headers etc. Because every system/server is set up differently, phpinfo() is commonly used to check configuration settings and for available predefined variables on a given system/server. How to create a phpinfo file? 1) Open any simple text editor like notepad. 2) Copy and paste the following one line code: <?php phpinfo() ?> 3) Save the file as phpinfo.php 4) Upload the file to the desired directory ( cpanel -> under public_html folder, plesk--> under httpdocs folder) using FTP clinets or File manager softwares. 5) Access the file with your browser to the location of the site where you uploaded your phpinfo.php file. Ex: http://domain.com/phpinfo.php For more information on phpinfo() function, see the PHP manual http://php.net/phpinfo | |
|
Comments (0)