以下代码在localhost上运行正常,但是当我在服务器上传它时 它没有。
的functions.php
<?php
function test($tmp){
return "returned value: " . $tmp;
}
?>
的config.php
<?php
include("functions.php");
?>
的index.php
<?php
include("config.php");
echo test("value");
?>
虽然我启用了服务器,但服务器甚至没有显示错误:
ini_set('display_errors',1);
PHP版本是相同的。
答案 0 :(得分:0)
您是否在Index.php中包含了Config.php?
我正在用它来显示我的错误。
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(E_ALL);
答案 1 :(得分:0)
我无法尝试服务器。我试过localhost,它工作正常。
/**
* The regionTemplates for the RouteController.
*/
RouteController.prototype.lookupRegionTemplates = function () {
return this.lookupOption('yieldRegions') ||
// XXX: deprecated
this.lookupOption('regionTemplates') ||
this.lookupOption('yieldTemplates') || {};
};