0 votes
195 views
in PHP by (98.9k points)
edited

How do you execute a PHP script from the command line?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer

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
1 answer 156 views
0 votes
1 answer 176 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 71 views
asked Jun 20, 2023 in Python by Doubtly (98.9k points)
0 votes
1 answer 79 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 115 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

537 users

...