zendframework的安装与配置

来源:互联网 发布:勇士vs火箭季后赛数据 编辑:程序博客网 时间:2024/05/22 10:40
首先我们从http://framework.zend.com/download下载,接下来我们将下载下来的压缩包解压,
解压完后我们来配置
Apache中的httpd.conf文件,进行编辑,由于
模块的打开是配合使用.htaccess对目录访问的限制mod_rewrite,因此 我们找到#LoadModulerewrite_module modules/
mod_rewrite.so
这行并将前面的"#"去掉。
找到:AllowOverrideNone
         
更改为:
         
AllowOverride All才能让.htaccess文件起作用
PHP:配置php.ini文件
找到下面这几行,并将前面的分号去掉,安装PDO模块
;extension=php_pdo.dll
;extension=php_pdo_mysql.dll
找到php.ini文件中的include_path

       去除Windows环境下include_path前的 “;”去掉  

       并且修改include_path的值等于 zend framework解压后的

       library路径

  修改如下:

     ; UNIX:"/path1:/path2"

     ;include_path = ".:/php/includes"

     ; Windows:"\path1;\path2"

      include_path =".;D:\library"

<?phprequire "Zend/Date";$date=new Zend_Date();echo $date;?>
能读出时间就代表时间



原创粉丝点击