Windows上的整合PHP開發環境有很多,如:Windows上使用的Wampserver(http://www.wampserver.com/),跨平台的Xampp(https://www.apachefriends.org/index.html),但是和MAMP PRO相比,它們立刻黯然失色。最大的差距體現在易用性上——用過MAMP PRO的朋友往往再也不會回頭去用Windows上那些難用的PHP開發環境了。
XAMPP is a completely free, easy to install Apache distribution containing MySQL, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use.
WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin allows you to manage easily your databases.
MAMP (https://www.mamp.info/en/) 安裝之后默認的配置如下:
PHP
phpinfo shows the current configuration of PHP.
MySQL
MySQL can be administered with phpMyAdmin.(http://www.phpmyadmin.net/home_page/index.php)
To connect to the MySQL server from your own scripts use the following connection parameters:
Host | localhost |
---|---|
Port | 3306 |
User | root |
Password | root |
Example:
$link = mysql_connect('localhost', 'root', 'root');
Ref:
http://stackoverflow.com/questions/5580342/windows-xampp-vs-wampserver-vs-easyphp-vs-alternative
https://www.mamp.info/en/mamp_windows.html
http://www.twd.cc/21146
http://www.imleon.cn/best-mamp-php-development-environment-for-windows.html