how to access the command line for xampp on windows

后端 未结 9 1228
难免孤独
难免孤独 2020-11-28 07:22

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 w

9条回答
  •  情歌与酒
    2020-11-28 07:55

    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.

提交回复
热议问题