Getting your PHP Info

by Tim on December 23, 2005

One of the first things you should learn how to do with PHP, is getting all the info about your PHP installation.

Sometimes you'll see a script that says it requires a certain setting to be one way. If you don't know, you could be purchasing something you can't use.

It is as simple as making a script, and naming it something like phpinfo.php - I'd recommend naming it something else, so people can't run it themselves. The less one knows about your setup, the harder it is to be mischeaveous.

<?php
phpinfo();
?>

It's that simple. You'll then get a full page of information about your PHP Installation.

Comments on this entry are closed.

Previous post:

Next post: