APACHE环境是AMPServ5.2.6的集成环境
目前使用的是ZendFramwork1.10
1、建一个test.com的虚拟目录
2、打开/APMServ5.2.6/Apache/conf/apmserv/vhost.conf,把test.com的 AllowOverride 设为All
3、在test.com的根目录配置.htaccess文件如下
RewriteEngine on
RewriteRule .* index.php
php_flag magic_quotes_gpc off
php_flag register_globals off
4、建立如下的子目录,这些目录将存放程序所需要的文件:
test.com/
/application
/controllers
/models
/views
/filters
/helpers
/scripts
/library
/public
/images
/scripts
/styles
5、根目录的index.php如下
6、application/controllers/IndexController.php代码如下
7、/application/views/scripts/Index建一个index.phtml
8、IE中打开test.com就可以看到上面的代码了。