Applies to: Shared HostingDifficulty: EasyTime Needed: 10Tools Required: FTP, plain text editorApplies to: Managed WordPressDifficulty: EasyTime Needed: 10Tools Required: FTP, plain text editorApplies to: GridDifficulty: EasyTime Needed: 10Tools Required: FTP, plain text editorApplies to: All DVDifficulty: EasyTime Needed: 10Tools Required: FTP, plain text editor

Last modified: March 10, 2020

Overview

You can use a phpinfo() page to view the current PHP information for your server.

Đang xem: How can i create a phpinfo

This file outputs a large amount of information, such as:

Information about PHP compilation options and extensionsPHP versionServer information and environment (if compiled as a module)PHP environmentOS version information, paths, master and local values of configuration optionsHTTP headersPHP license

Because every system is set up differently, phpinfo() is commonly used to check PHP configuration settings and for available predefined variables on your particular system.

phpinfo() is also a valuable debugging tool, as it contains all EGPCS (Environment, GET, POST, Cookie, and Server) data.

Create a phpinfo.php page

Luckily, creating a phpinfo page can be performed fairly quickly and easily!

Navigate to your website”s root directory. This should be:Managed WordPress: /htmlCreate a new file named phpinfo.php in your associated website root directlyYou do have the option to add this file into any subdirectory of your choosing.Add the following lines into your phpinfo.php file:

// Show all information, defaults to INFO_ALLphpinfo();?>
 Save your edits.
You have just created a php info page! Feel free to continue through this article for instructions on how to view your page.

Create a phpinfo.php page

Luckily, creating a phpinfo page can be performed fairly quickly and easily!

Navigate to your website”s root directory. This generally will be:Plesk: httpdocscPanel: public_htmlCreate a new file named phpinfo.php in your associated website root directlyYou do have the option to add this file into any subdirectory of your choosing.Add the following lines into your phpinfo.php file:

// Show all information, defaults to INFO_ALLphpinfo();?>
 Save your edits.
You have just created a php info page! Feel free to continue through this article for instructions on how to view your page.

Create a phpinfo.php page

Luckily, creating a phpinfo page can be performed fairly quickly and easily! In this example we will be using the Grid”s File Manager.

Xem thêm: Top 10 Kinh Nghiệm Chơi Liên Quân Cho Người Mới Từ A, Hướng Dẫn Chơi Liên Quân Cho Người Mới Từ A

Click on NEW FILE.

*

Name the file phpinfo.php.

*

Add the following lines into your phpinfo.php file:

// Show all information, defaults to INFO_ALLphpinfo();?>
 Save your edits.
You have just created a php info page! Feel free to continue through this article for instructions on how to view your page.

Instructions

Navigate to the /public_html folder.Create a new file called phpinfo.phpEdit the phpinfo.php page and add the following lines:// Show all information, defaults to INFO_ALLphpinfo();?>Save your changes.

View your phpinfo page

To view your php info page, open a browser and go to the URL http://www.example.co/phpinfo.php Replacing example.com with your actual domain name

*

The php info page will be under example.com/phpinfo.php assuming you uploaded the file to your website root directory.

Xem thêm: Phần Mềm Myxteam – Phần Mềm Quản Lý Công Việc Hiệu Quả

You can view all of the information about PHP for your server for that particular directory.If you”d like to search for a specific module or resource limit, you can press the following keys:Windows: CTLR + FMac: CMD + FThen type the name of the module or resource in question.

*

That”s it! You should now know how to create, view, and search through a phpinfo.php page!

More about PHP

http://us.php.net/

Article Contents:

*

Stay Connected

© 1998- Media Temple Privacy Legal

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *