PHP check help

They have: 2 posts

Joined: Aug 2005

is there a way to check if PHP is installed and running on machine ?
because I made a hello.php , only info (); in it , when I opened , it was blank
thanks

Busy's picture

He has: 6,151 posts

Joined: May 2001

phpinfo(); will display the settings etc on the machine, if installed, but just doing a simple php return would tell you.

<?php
// if php is not install all this will display, if is installed and running the following will display as: is this thing on?
echo "is this thing on?";
?>

He has: 57 posts

Joined: Apr 2005

just use this simple script:

<?php
phpinfo
()
?>
'

If php is installed, it will display the configuration, location, etc. Good luck.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.