How can I install php on Windows

2019-09-21 10:37发布

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.

4条回答
我命由我不由天
2楼-- · 2019-09-21 10:54

Install WAMPP or XAMPP and start development in php.

查看更多
劫难
3楼-- · 2019-09-21 10:56

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.

查看更多
Explosion°爆炸
4楼-- · 2019-09-21 11:05

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

查看更多
劳资没心,怎么记你
5楼-- · 2019-09-21 11:05

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.
查看更多
登录 后发表回答