How to run PHP script from the command prompt?
Running PHP script from command prompt is pretty easy. Suppose you have a PHP file named as demo1.php and file contains the following content.
echo “What a wonderful world!!”;
You can run this through command prompt.
So the result will be-
What a wonderful world!!