我有一个全局include/header.php
文件,例如:
更新文件夹结构:
/
include/
header.php
functions.php
content/
show.php
包含/header.php
<?php
require_once('functions.php');
$settings = blaa;
....
?>
包含/functions.php
<?php
function hello()
{
echo "hello world";
}
?>
现在是一个内容文件content/show.php
内容/show.php
<?php
require_once('../include/header.php');
echo "show page want to say: ";
hello();
?>
现在如果我查看 apache error_logcall to undefined function in content/show.php on line...
我不知道为什么:-/
问候