How can I install php on Windows

时光毁灭记忆、已成空白 提交于 2019-12-14 04:14:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!