Just run the PHP CLI (Command Line Interface) program and provide the PHP
script file name as the command line argument. For example, "php myScript.php",
assuming "php" is the command to invoke the CLI program. Be aware that if
your PHP script was written for the Web CGI interface, it may not execute
properly in command line environment.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, "php myScript.php", assuming "php" is the command to invoke the CLI program.
Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.