Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How do you execute a PHP script from the command line?
Home
PHP
How do you execute a PHP script from the command line?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
How do you execute a PHP script from the command line?
#php-php
#php-server-monitor-script
#mysql-php
#php-programme
#php-development
#php-support
#php-language
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 22, 2019
by
john ganales
Just use the PHP command line interface (CLI) and specify the file name of the script to be executed as follows:
php script.php
...