Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

How can I execute a PHP script using command line?

3 like 0 dislike
Hello member,

How can I execute a PHP script using command line?

please give me your feedback............
asked 1 year ago by daneim (127,080 points)

1 Answer

1 like 0 dislike
 
Best answer
Hey joshep_mafia 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.
answered 1 year ago by marck_don (191,010 points)

Related questions

2 like 0 dislike
0 answers
2 like 0 dislike
1 answer
6 like 0 dislike
1 answer
8 like 0 dislike
1 answer
2 like 0 dislike
1 answer