0 votes
217 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 173 views
0 votes
1 answer 216 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 87 views
asked Jun 20, 2023 in Python by Doubtly (98.9k points)
0 votes
1 answer 99 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 134 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

561 users

...