PHP 链接目录脚本

PHP 链接目录脚本

我取了 .zip 文件,解压后进入我的域名/

==> error_log <==
[Sun Sep 27 22:54:25 2009] [error] [client 24.185.130.236] PHP Warning:  require_once(../include/config.php): failed to open stream: No such file or directory in /usr/home/alexus/xxxshow.biz/PhpLD/install/index.php on line 48
[Sun Sep 27 22:54:25 2009] [error] [client 24.185.130.236] PHP Fatal error:  require_once(): Failed opening required '../include/config.php' (include_path='.:/usr/local/lib/php') in /usr/home/alexus/xxxshow.biz/PhpLD/install/index.php on line 48

==> access_log <==
24.185.130.236 - - [27/Sep/2009:22:54:25 -0400] "GET /install/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9"

所以我做了

-bash-3.2# cd PhpLD/include/
-bash-3.2# cp config.php.新的 config.php
-bash-3.2#

现在我得到了

==> error_log <==
[Sun Sep 27 22:58:37 2009] [error] [client 24.185.130.236] PHP Fatal error:  Cannot redeclare date_add() in /usr/home/alexus/xxxshow.biz/PhpLD/include/functions.php on line 2185

==> access_log <==
24.185.130.236 - - [27/Sep/2009:22:58:37 -0400] "GET /install/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9"

所以问题是我该如何让它工作?有人可能遇到过同样的问题吗?

答案1

date_add() 是在 PHP 5.3 中添加的。也许您正在尝试使用一些尚未在 PHP 5.3 上测试过的东西。要么安装旧版本的 php,要么检查是否有您要安装的较新版本。

相关内容