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
(
32.2k
points)
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
(
14.0k
points)
Just use the PHP command line interface (CLI) and specify the file name of the script to be executed as follows:
php script.php
Related questions
0
votes
Q: What do the initials of PHP stand for?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
(
32.2k
points)
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programme
#php-development
#php-language
0
votes
Q: What is the actually used PHP version?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
(
32.2k
points)
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programme
#php-development
#php-language
0
votes
Q: Which programming language does PHP resemble?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
(
32.2k
points)
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programme
#php-development
#php-language
0
votes
Q: What does PEAR stand for?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
(
32.2k
points)
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programme
#php-development
#php-language
0
votes
Q: How to run the interactive PHP shell from the command line interface?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
(
32.2k
points)
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
0
votes
Q: How can we connect to a MySQL database from a PHP script?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
(
32.2k
points)
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
0
votes
Q: How is a constant defined in a PHP script?
asked
Jun 23, 2019
in
PHP
by
SakshiSharma
(
32.2k
points)
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
0
votes
Q: How can we define a variable accessible in functions of a PHP script?
asked
Jun 22, 2019
in
PHP
by
SakshiSharma
(
32.2k
points)
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
...