How to See Your PHP Configuration Settings

Posted in Featured Tutorials

Tweet This Share on Facebook Bookmark on Delicious Digg this Submit to Reddit

Sometimes you need to see what PHP configuration settings are in effect on your server. For example, is safe_mode on or off, is magic quotes (magic_quotes_gpc) on or off, are there any disabled PHP functions (disable_functions), etc.

Just create a PHP script with the following contents …


and upload to your server.

Navigate to that script in your browser to run it and it should display you a long list of PHP configuration values.  It will have two columns: one for local value and one column for master value.

Delete the script after you are done using it. It is a security hazard if other people can see your PHP configuration values.