HOW CAN I EXECUTE A PHP SCRIPT USING COMMAND LINE?

Sanjay Sharma

Total Post:42

Points:210
Posted by  Sanjay Sharma
PHP 
PHP
 1081  View(s)
Ratings:
Rate this:
  1. Sanjay Sharma

    Post:42

    Points:210
    How can I execute a PHP script using command line?

    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. 

      Modified On Apr-04-2016 12:46:04 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!