6

I am using the latest version of XAMPP with XAMPP control panel v2.5 (9 May 2007). I want to access the command line to run php -q htdocs\path\to\file.php.

Problem: On my XAMPP control panel, I do not see the Shell button that will bring up the command line interface. How can I access the shell, or is there another way to run the PHP file?

My XAMPP Control Panel

enter image description here

What I am finding: enter image description here

Nyxynyx
  • 61,411
  • 155
  • 482
  • 830

3 Answers3

2

If You need to access XAMPP shell to run i.e pear command You need to go to XAMPP installation directory and run xampp-control-3-beta.exe (XAMPP version 1.7.7). After clicking xampp shell button it prompt pops up asking if You want to create shell.bat say Yes and You are good to go.

Mihkel Selgal
  • 508
  • 6
  • 10
1

If you have php.exe's directory in your PATH environment variable, you can simply open a command line window (Start > Run > cmd), go in your PHP script directory and launch it with php yourscript.php.

Maxime Pacary
  • 22,336
  • 11
  • 85
  • 113
0

In my windows box, xampp shell is just a instance of cmd.exe running a batch file

enter image description here

lovespring
  • 420
  • 1
  • 4
  • 14