COMPOSER:选择您要使用的命令行 php。什么都没有

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37391068/
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 01:13:17  来源:igfitidea点击:

COMPOSER: choose the command line php you want to use. There is nothing there

phpxamppcomposer-php

提问by deathlock

I'm using the Composer Windows installer and it brings me to this window,

我正在使用 Composer Windows 安装程序,它把我带到这个窗口,

enter image description here

在此处输入图片说明

There is nothing in the dropdown, but I'm not sure where to pick the correct command-line PHP. Should I direct it to the php.exe in XAMPP folder?

下拉列表中没有任何内容,但我不确定在哪里选择正确的命令行 PHP。我应该将它定向到 XAMPP 文件夹中的 php.exe 吗?

回答by Mathan Kumar

If you are using wampp do this:

如果您使用 wampp,请执行以下操作:

  1. Click the browser button.

  2. Then select your file path like following path.

  1. 单击浏览器按钮。

  2. 然后选择您的文件路径,如以下路径。

(C:\wamp\bin\php\php5.4.12\php.exe)

(C:\wamp\bin\php\php5.4.12\php.exe)

If you are using xampp do this:

如果您使用的是 xampp,请执行以下操作:

  1. Click the browser button.

  2. Then select your file path like the following path.

  1. 单击浏览器按钮。

  2. 然后选择您的文件路径,如以下路径。

(C:/xampp/php/php.exe)

(C:/xampp/php/php.exe)

回答by Dinesh Yadav

Yes you have to select php.exe from your xampp folder if you are using localhost. choose this path... xampp > php > php.exe

是的,如果您使用的是本地主机,则必须从 xampp 文件夹中选择 php.exe。选择这条路径... xampp > php > php.exe

回答by wmrodrigues

I came across the same screen. I'm using Vertrigo Server and all the things that I have done was pick the php.exe file path by clicking on "Browse..." button (on my machine it is on C:\Program Files\VertrigoServ\Php\php.exe). Hope that helps.

我遇到了同一个屏幕。我正在使用 Vertrigo Server,我所做的所有事情都是通过单击“浏览...”按钮来选择 php.exe 文件路径(在我的机器上它位于 C:\Program Files\VertrigoServ\Php\php 。可执行程序)。希望有帮助。

回答by chobela

If you are using Ammps on Windows, you can click Browse -> 'C' -> Program Files -> Ammps -> 'Your PHP Version' -> php.exe, Worked for me.

如果您在 Windows 上使用 Ammps,您可以单击浏览 -> 'C' -> 程序文件 -> Ammps -> '您的 PHP 版本' -> php.exe,为我工作。

回答by Hitendra Singh Shekhawat

Composer automatically detects the directory in which your php.exe file is located. mainly it is in C:\xampp\php directory if you are using Xampp server and C:\wamp\bin\php\php7.4.1 directory if using wamp server. If your composer browser don't automatically detects the location of php.exe then you can use your browse option to locate it.

Composer 会自动检测您的 php.exe 文件所在的目录。如果您使用的是 Xampp 服务器,则主要在 C:\xampp\php 目录中,如果使用 wamp 服务器,则主要位于 C:\wamp\bin\php\php7.4.1 目录中。如果您的 Composer 浏览器没有自动检测 php.exe 的位置,那么您可以使用浏览选项来定位它。