简体   繁体   English

在Windows XP Professional中测试PHP的最简单方法是什么?

[英]What's the easiest way to test PHP in Windows XP Professional?

I want to test some PHP on my local machine running Windows XP Professional. 我想在运行Windows XP Professional的本地计算机上测试一些PHP。 I'm familiar with coding PHP for upload, but not with running a web server. 我熟悉用于上传的PHP编码,但不熟悉运行Web服务器的过程。

What is the easiest way to set up a test environment? 设置测试环境的最简单方法是什么? Step-by-step instructions would be great if you can give them. 如果可以的话,逐步说明将是很棒的。

(I see WAMP recommended in this thread - thoughts?) (我在该主题中看到了推荐的WAMP-想法吗?)

Update - a year later 更新-一年后

A little self-promotion: after using XAMPP for a long time, I began to want things it didn't include. 自我推广:长时间使用XAMPP之后,我开始想要它不包含的东西。 (Support for PDO was a big one - every time I tried to enable pdo and mysqli simultaneously, something crashed.) I eventually worked through the process of installing Apache, PHP, MySQL, and PHPMyAdmin individually, and documented the process with screen shots on my blog. (对PDO的支持是很大的-每次我尝试同时启用pdo和mysqli时,都会崩溃。)我最终完成了分别安装Apache,PHP,MySQL和PHPMyAdmin 的过程 ,并通过截屏记录了该过程。我的博客。

Some of the configuration that I was able to do this way could have been done in XAMPP, but it was only because I had to set things up myself that I discovered new things (like being able to serve files out of c:\\whatever instead of c:\\program files\\apache\\htdocs). 我能够以这种方式进行的某些配置可以在XAMPP中完成,但这仅仅是因为我必须自己进行设置才能发现新的事物(例如能够从c:\\ c:\\ program files \\ apache \\ htdocs)。

On the whole, I'm happier with having installed these items separately. 总体而言,我对单独安装这些项目感到满意。 But XAMPP was a good (and easy) package to start with, and served me well while I used it. 但是XAMPP最初是一个很好(且很容易)的程序包,在我使用它时对我很有帮助。

替代文字
(source: apachefriends.org ) (来源: apachefriends.org

Xampp is the simplest. Xampp是最简单的。 You can setup everything in a Step by Step and if you require further configuration (Virtual Server, extension) you have the normal php.ini and other file in the directory that you can edit yourself. 您可以逐步设置所有内容,如果需要进一步的配置(虚拟服务器,扩展名),则可以在目录中拥有常规的php.ini和其他文件,您可以自行编辑。

Here is the Step By Step installation for Windows. 这是Windows的分步安装

XAMPP from ApacheFriends is pretty simple to set up and use. ApacheFriends的XAMPP设置和使用非常简单。

note the site appears to be down as at 15:02 UTC on 3rd Dec 2008 请注意 ,截至2008年12月3日世界标准时间15:02,该网站似乎已关闭
note again and it is back! 再次注意 ,它又回来了!

Instead of WAMP, I recommend XAMPP, for Cross Platform (X), Apache, MySQL, PHP, and Perl, all in one package. 对于跨平台(X),Apache,MySQL,PHP和Perl,我建议使用XAMPP而不是WAMP,它们都打包在一个软件包中。 It is very simple to setup and use, and like WAMP puts an icon in the system tray to manage it all. 设置和使用非常简单,就像WAMP一样,在系统托盘中放置一个图标即可管理所有内容。

You can get it here: www.apachefriends.org/en/xampp-windows.html . 您可以在这里获得它: www.apachefriends.org/en/xampp-windows.html This site also includes comprehensive instructions to get up and running quickly. 该站点还包括全面的说明,以快速启动和运行。

There is even a portable version available at http://portableapps.com/apps/development/xampp . http://portableapps.com/apps/development/xampp甚至提供了一个便携式版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM