您现在的位置: 365建站网 > 365文章 > PHP开发常见问题解决列表

PHP开发常见问题解决列表

文章来源:365jz.com 点击数:226 更新时间:2009-10-25 11:36

PHP开发常见问题解决列表

1. 学习Zend Framework tutorial过程中的问题

(1)执行"zf create project zf-tutorial"出现如下错误:

     '"php.exe"' is not recognized as an internal or external command, operable program or batch file.

     解决办法:原因是因为php.exe所在的路径没有加到系统环境变量Path中。加入后即可解决。

(2)访问http://localhost/zf-tutorial/public时出现403Forbidden错误。这个问题搞了我很久,最后发现是public下的.htaccess配置不当造成的,将文件内容替换为如下就可以解决了。目前源文件配置较为复杂,没看懂,先解决问题再继续研究。

    RewriteEngine on
    RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

生产内容,同时打通搜索引擎(SEO)与AI搜索引擎(GEO)流量入口的软件! 点击进入365建站器 »

您可能感兴趣的文章