Aptana 终端 - CLI 中的 PHP

发布于 2024-12-04 13:27:16 字数 308 浏览 4 评论 0原文

一开始我试图在 wandows cmd.exe 中运行 Symfony 的 php 命令

过了一会儿我放弃了。

自从我使用 Aptana 以来,我试图弄清楚如何执行像

php 这样的命令app/console 学说:schema:update --force

适用于 Symfony2。但我无法弄清楚这是否可能?

由于 Aptana 中的终端是 Unix 风格的(无论如何看起来都像),我更喜欢在 Aptana 终端中执行 php 命令,

任何帮助都会受到赞赏。

At the start I was trying to run php commands for Symfony in wondows cmd.exe

After a while i gave up.

Since I use Aptana, I tried to figure out how to do commands like

php app/console doctrine:schema:update --force

which is for Symfony2. But I cannot figure out of this is possible or not?

Since the Terminal in Aptana is Unix-style (looks like it anyway) I'd prefer doing php commands in Aptana Terminal

any help is appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奢华的一滴泪 2024-12-11 13:27:16

要工作,您必须在系统上的 PATH 环境变量中设置 php 的路由,例如 C:\wamp\bin\php\php5.3.10\,请务必放置最后一个 \。

如果您已打开 Aptana,请重新启动它。之后你可以尝试在终端中运行 echo $PATH,输出列表中应该包含刚刚输入的 PHP 的路径。

要测试配置,请运行 php -version ,如果输出是安装的 php 版本,只需将自己置于 symfony 目录中并运行 php app / console 即可。

To work you must have set in the PATH environment variable on your system the route to php, for example C:\wamp\bin\php\php5.3.10\, be sure to place the last \.

If you have open Aptana, restart it. After this you can try running in the terminal echo $ PATH, in the output list should contain the path to PHP that just entered.

To test the configuration, run php -version, if the output is the version of php installed, simply position yourself in the symfony directory and run php app / console.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文