【发布时间】:2012-07-03 12:23:30
【问题描述】:
好吧,我已经用同样的风格写了一段时间了,突然间我在 pear 配置中遇到了一个错误。
错误:
Deprecated: Assigning the return value of new by reference is deprecated in E:\xampp\php\PEAR\Config.php on line 80
Deprecated: Assigning the return value of new by reference is deprecated in E:\xampp\php\PEAR\Config.php on line 166
我的索引页(是我唯一改变的):
<?php
include("library/config.php");
include("library/functions/core.php");
// Defualt Heading
$heading = "";
// Load Page Model
loadModel($path0,$path1);
// Load User Language
loadLanguage($path0,$path1);
// Load Page Header
loadHeader();
// Load Page Body
loadPage($path0,$path1);
// Load Page Footer
loadFooter();
?>
我唯一改变的是 config.php 和 core.php 的位置,它们被放置在一个名为 library 的新文件夹下更深的 1 个文件夹。
【问题讨论】:
-
我的梨配置?还是我的站点配置文件?
-
你在使用一些框架吗?xampp中的php版本是什么?