2017-10-06 13 views
-3

申し訳ありませんが、最近私たちの国は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をすることができない理由を主な目的は疑問?

+0

[ '_()'](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

+2

エラー報告をオンにします。 error_reporting(E_ALL);これをスクリプトの一番上に置きます。あなたは何が起こっているのを見てください – Akintunde007

+0

@Akintundeそれをオンにするには? – aircraft

答えて

0

私はerror.inc.phpをするrequire_onceできない理由を私は知らない、私は は_()によって引き起こされるかどうかわからない、と私は何を_()知らない を意味する。

_() OR gettext()機能は同じである

文献:http://www.php.net/manual/en/function.gettext.php

関連する問題