PHP环境搭建

(1)安装wamp server
(2)安装zend studio
(3)破解zend studio
(4)配置如下:
1.将Zend Studio工作空间目录切换到wamp的web目录下 wamp的web目录为D:/wamp/www 在Zend Studio点击File-Switch Workspace-other 弹出Workspace Launcher对话框 点击Brower找到D:/wamp/www点击确定 如果不切换目录,会出现找不到dummy.php的警告
Warning: chdir(): No such file or directory (errno 2) in C:/Users/用户名/AppData/Local/Temp/dummy.php on line 1
这是因为Zend Studio仅仅能编辑和编译,运行的时候需要服务器(默认是Zend Server),这里用WampServer中的Apache服务器代替足够了 2.新建本地PHP项目,编辑PHP文件 File-->New-->Other 展开PHP,选择Local PHP Project点Next, 在Project Name中输入项目名,点击finish 编辑项目中自动生成的index.php
<html><body><?phpecho "Hello World!";?></body></html>
右键点击index.php-->Run As-->PHP Web Application 这是会打开内置的浏览器 http://localhost/项目名/index.php 页面显示 Hello World! 表示环境配置成功
posted @ 2014-09-29 15:20  Peter_youny  阅读(241)  评论(0编辑  收藏  举报