问题
I want to install PHP on Windows 10 Pro, I've tried both downloading PHP 7.1 and 7.0.14 from the official website, but for some reason I can't find php.exe in the folder I download (there seems to be no executable at all).
Where can I find the binary? My goal is to be able to run PHP from the Command Prompt.
回答1:
Did you get your version of PHP from? http://windows.php.net/download/ I've just downloaded the ZIP from there and it contained php-win.exe
Check you've not accidentally downloaded the php source
回答2:
Install WAMPP or XAMPP and start development in php.
回答3:
You can install xampp or wamp server for windows. The major Difference Between WAMP, LAMP, MAMP AND XAMPP is operating system.
- Lamp is for Linux operating system.
- Wamp is for windows operating system.
- Mamp is for Mac OS X operating system.
- xampp is for x-os, apache, mysql, php , perl.
回答4:
I'm assuming that you're not asking about live deployment and are just wanting to learn some PHP by messing around with it.
The easiest way to do it is with a package like Xampp or Wamp
These will both install a basic stack for you which is fine for development.
If you're running the build of Windows 10 that has bash for Windows installed you can use apt-get. That's pretty easy and also fine for messing around with.
Or you could just use Docker which is more complicated than these ways but is really worth learning how to do.
来源:https://stackoverflow.com/questions/41442307/how-can-i-install-php-on-windows