申し訳ありませんが、最近私たちの国はGoogleにアクセスできないため、ネットワーク内のメッセージを照会することはできません。PHPは `_() 'を含むファイルを要求できません
私はerror.inc.php
を持っている:
index.php
で
<?php
...
define("SUC_EXEC_PDNSSEC_REMOVE_ZONE_KEY", _('Zone key has been deleted successfully.'));
define("SUC_EXEC_PDNSSEC_ACTIVATE_ZONE_KEY", _('Zone key has been successfully activated.'));
define("SUC_EXEC_PDNSSEC_DEACTIVATE_ZONE_KEY", _('Zone key has been successfully deactivated.'));
function error($msg) {
echo " <div class=\"error\">Error: " . $msg . "</div>\n";
}
?>
:
<?php
echo "before include";
require_once($_SERVER['DOCUMENT_ROOT']."/poweradmin/inc/error.inc.php");
echo "included error.inc.php"; # there do not print to the screen when I access the index.php
...
私はindex.phpをアクセスするときは、表記法を参照してください、私はこの行のコード(echo "included error.inc.php";
)を印刷することはできません私のブラウザ画面では、この行に何か問題があることを意味します。require_once($_SERVER['DOCUMENT_ROOT']."/poweradmin/inc/error.inc.php");
私はerror.inc.php
をするrequire_onceできない理由を、私は_()
によって引き起こされるかどうかわからない、と私は_()
が何の略か知っていないかわかりません。
EDIT
そしてerror.inc.php
が私にこのことを伝えることができindex.phpを、にrequire_onceをすることができない理由を主な目的は疑問?
[ '_()'](http://php.net/manual/en/function.gettext.php#refsect1- function.gettext-notes)は、関数['gettext()'](http://php.net/manual/en/function.gettext.php#refsect1-function.gettext-notes)のエイリアスです。 – axiac
エラー報告をオンにします。 error_reporting(E_ALL);これをスクリプトの一番上に置きます。あなたは何が起こっているのを見てください – Akintunde007
@Akintundeそれをオンにするには? – aircraft