PHP check help
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
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 posted this at 11:05 — 7th August 2005.
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?";
?>
cpellizzi posted this at 20:56 — 27th August 2005.
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.