Your Ad Here
0

How can I execute a PHP script using command line?

Posted by The Blogger on 12:05 PM in
Answer:

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.

tags: php interview questions and answers, php interview question How can I execute a PHP script using command line, How can I execute a PHP script using command line, command line, php script in command line

0 Comments

Post a Comment

Your Ad Here

Copyright © 2009 Interview Questions and Answers