how to access the command line for xampp on windows

后端 未结 9 1215
难免孤独
难免孤独 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 08:08

    In the version 3.2.4 of the XAMPP Control Panel, there is button that can open a command line prompt (red rectangle in the next figure)

    After pressing the button, you will see the command prompt window.

    From this window you can navigate through the different folders and start the different services available.

    0 讨论(0)
  • 2020-11-28 08:09
    • You can set environment variables as mentioned in the other answers (like here)

      or

    • you can open Start > CMD as administrator and write

      C:\xampp\php phpfile.php

    0 讨论(0)
  • 2020-11-28 08:12

    Please renember: When you change the path variable, you need to restart the console otherwise the path variable is not updated and does not seem to work.

    0 讨论(0)
提交回复
热议问题