Call: (209) 560-6611

How to see the PHP settings on the server

Date: November 7, 2012 Author: ang Category: Tutorials Websites Tags: , , Comments: 0

If you've dabbled in PHP, there comes times when you need to see what certain settings are on your server. You see what the server settings are by uploading a phpinfo.php file to the root directory.

Here's what the phpinfo.php file code looks like:

phpinfo.php

 PHP |  copy code |? 
1
<?php
2
phpinfo();
3
 
4
phpinfo(INFO_MODULES);
5
 
6
?>

source: http://php.net/manual/en/function.phpinfo.php

Use ftp to upload this file to your hosting account's root directory. You can see your server's settings my navigating to the absolute path to the file in a web browser.

Example: http://www.mywebsite.com/phpinfo.php

Leave a Reply

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

Before you post, please prove you are sentient.

What do bees make?

Before you post, please prove you are sentient.

What is 4 * 3?