次のようなグローバルinclude/header.php
ファイルを取得しました。
更新フォルダー構造:
/
include/
header.php
functions.php
content/
show.php
インクルード/header.php
<?php
require_once('functions.php');
$settings = blaa;
....
?>
include/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_logを見るとcall to undefined function in content/show.php on line...
理由がわかりません:-/
ご挨拶