2

hey I want to run php on command prompt with xampp server. I made 2 environmental variables C:\xampp\php and C:\xampp\mysql\bin. how to execute the php code now?

Thakur Akshay
  • 21
  • 1
  • 4
  • 1
    Possible duplicate of [How to access PHP with the Command Line on Windows?](http://stackoverflow.com/questions/7307548/how-to-access-php-with-the-command-line-on-windows) – ArSeN Jan 17 '16 at 08:33

1 Answers1

5

Run command from console

c:\xampp\<path to php>\php.exe <path_to_your_php_project>\your_script.php
Nick
  • 9,735
  • 7
  • 59
  • 89