XAMPP: Executing PHP.EXE from Command Prompt August 24, 2010 by ghazalitajuddin Leave a Comment To execute PHP from command prompt, you need to go to php directory in xampp, allocate the php.exe, then type the code like this… C:\xampp\php>php C:\xampp\framework\yiic webapp C:\xampp\htdocs\yii