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

How do you execute a PHP script from the command line?
Answer
More videos on YouTube
  1. Start a command prompt (Start button > Run > cmd.exe)
  2. In the window that appears, type the full path to the PHP executable (php.exe) followed by the full path to the script you wish to run as a windows service.
  3. Hit the Enter key to execute the command line.
 

Tìm kiếm

Back
Top