php XAMPP 的 Shell 在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8186614/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 04:07:29  来源:igfitidea点击:

Where is XAMPP's Shell?

phpapachexampplamp

提问by Nyxynyx

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.

我正在使用最新版本的 XAMPP 和 XAMPP 控制面板 v2.5(2007 年 5 月 9 日)。我想访问命令行来运行php -q htdocs\path\to\file.php.

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

问题:在我的 XAMPP 控制面板上,我没有看到Shell将调出命令行界面的按钮。我如何访问 shell,或者是否有另一种方式来运行 PHP 文件?

My XAMPP Control Panel

我的 XAMPP 控制面板

enter image description here

在此处输入图片说明

What I am finding:enter image description here

我发现了什么:在此处输入图片说明

采纳答案by Frosty Z

If you have php.exe's directory in your PATHenvironment 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.

如果您php.exePATH环境变量中有's 目录,您只需打开一个命令行窗口(开始 > 运行 > cmd),进入您的 PHP 脚本目录并使用php yourscript.php.

回答by Mihkel Selgal

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.

如果您需要访问XAMPP shell 运行ie pear 命令您需要进入XAMPP 安装目录并运行xampp-control-3-beta.exe(XAMPP 版本1.7.7)。单击 xampp shell 按钮后,它会弹出提示,询问您是否要创建 shell.bat 说是,您很高兴。

回答by lovespring

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

在我的 Windows 框中,xampp shell 只是一个运行批处理文件的 cmd.exe 实例

enter image description here

在此处输入图片说明