how to access the command line for xampp on windows

Somk picture Somk · May 25, 2012 · Viewed 163.3k times · Source

I am running Xampp on my Windows 7 machine and was wondering if and how I could run commands for xampp via a command line. commands like php phpfile.php

Any advice would be appreciated.

Answer

Alex picture Alex · May 25, 2012

XAMPP does not have a pre build console to run php or mysql commands, so, you have to add to windows PATH environment variables, these 2: ;C:\xampp\mysql\bin;C:\xampp\php;

Then you should be able to execute php and mysql commands from the CMD.

UPDATE

I tested it, and it works.