Categories
Linux

PHP phpinfo() on the fly

Here is a little trick to get phpinfo() information on the fly.

You need php-cli installed (sometimes its called php4-cli or php5-cli)

echo "<?php phpinfo(); ?>" | php4
echo "<?php phpinfo(); ?>" | php5
echo "<?php phpinfo(); ?>" | php5-cli

etc

You can also tack on a | grep at the end if you want to filter for certain words.

2 replies on “PHP phpinfo() on the fly”

Leave a Reply

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