Command Line PHP on Microsoft Windows

This section contains notes and hints specific to getting PHP running from the command line for Windows.

The simplest solution:

Getting PHP to run from the command line can be performed without making any changes to Windows.

C:\PHP5\php.exe -f “C:\PHP Scripts\script.php” — -arg1 -arg2 -arg3

But there are some easy steps that can be followed to make this simpler. Some of these steps should already have been taken, but are repeated here to be able to provide a complete step-by-step sequence.

Read the full guide at

PHP in Command Prompt