Home > DeveloperSection > Interviews > How can I execute a PHP script using command line?

Posted on    March-18-2011 12:00 AM

 1 Answer(s)
  1019  View(s)
Rate this:

Sanjay Sharma
Sanjay Sharma

Total Post:42

Posted on    March-18-2011 12:00 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick