How to view php settings using a phpinfo page

PHP has many variables that you are able to upgrade as required. For example, you may need to upgrade your php memory_limit to avoid certain programs from running out of memory. To be able to modify these settings, you must first be able to check what they are. To do that, you will need to make a phpinfo web page. A phpinfo web page reveals you all of your php configurations.
A phpinfo web page is merely a php web page with the following code:

<? phpinfo(); ?>

Follow the steps below to create a phpinfo page using your File Manager.
Login to your cPanel
Open your FileManager
Go to the directory you will work with. This is important because each directory can actually be set to have different php configurations. In this example, we are checking the php configurations for our primary domain, so we are directing to the public_html listing.
In the top menu, click new file
Enter phpinfo.php as a file name
create new file
Right click on it and choose “Edit”.
Enter the following text:

<? phpinfo(); ?>

Then click Save Changes.
You can now access this page from your browser. If you place the file in your public_html folder, then you would visit http://YourDomain.com/phpinfo.php. The results should be similar to the below screenshot:
phpinfo
You can find a specific value of setting by using your browser search feature.

Important: your phpinfo web page has many php configurations that you don’t want to transmitted to the world. When you’re completed using the  file, be sure to remove it.