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
Where is XAMPP's Shell?
提问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 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?
问题:在我的 XAMPP 控制面板上,我没有看到Shell
将调出命令行界面的按钮。我如何访问 shell,或者是否有另一种方式来运行 PHP 文件?
My XAMPP Control Panel
我的 XAMPP 控制面板
What I am finding:
我发现了什么:
采纳答案by Frosty Z
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
.
如果您php.exe
的PATH
环境变量中有'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 说是,您很高兴。