5) Add "C:\PHP" to the Windows Path Environment Variable
In the Desktop, right-click the "My Computer" icon (A) and click on the "Properties" (B) at the bottom of the drop down menu.
to open the "System Properties" window (C). Select the "Advanced" tab (D) and click on the "Environment Variables" button (E)...
...to open the "Environment Variables" window (F). In the "System variables" box (G), select the "Path" variable entry (H) and click on the "Edit" button (I),
to open the "Edit System Variable" window (J). Go to the very right end of the Variable Value (K) & (L) which can be best done by pressing the [End] key on the keyboard.
If you accidentally delete the whole variable value entry (which can easily happen if the whole value is selected - blue - and you press a key other than the [End] key on the keyboard), you can click the "Cancel" button and try again by re-clicking on the "Edit" button (I) of the previous "Environment Variables" window (F).
While at the very right end of the path variable value, type ;C:\PHP (do not forget to type the semi-colon symbol " ; " in front of the C:\PHP ). Click the "OK" button (M) and we are done including the C:\PHP folder in the Path environment variable. This will not take effect until after we restart Windows, but before we do that, we still need to create a new environment variable so don't close the "Environment Variables" window ( F) just yet. We will work on that window in the next step of the installation.
Previous Step:4) Rename the "php.ini-recommended" file to "php.ini" in the "PHP" folder.
Next Step : 6) Create the “PHPRC” environment variable