-6

PHP で警告メッセージを変更する

警告: include (tools / test_db / viewposta.php) [function.include]: ストリームを開けませんでした: D にそのようなファイルまたはディレクトリはありません: \ program files \ Server xampp \ xampp \ htdocs \ projc \ writecode \ tools \ terminal \ 45行目のrun.php

警告: include () [function.include]: 'tools/test_db/viewposta.php' for include (include_path = '.; D:\program files\Server xampp\xampp\php\PEAR') を D:\ で開けませんでしたprogram files\Server xampp\xampp\htdocs\projc\writecode\tools\terminal\45行目のrun.php

なれ

\projc\writecode\tools\terminal\run.php 45 行目のエラー。

4

1 に答える 1

0

クラス内の方はこちらからご覧になることをお勧めset_error_handlerます

set_error_handler(
    function($level,$msg,$file,$line) {
        echo "Error at ".$file." on line ".$line;
        exit;
    }
);
于 2013-05-04T15:37:26.767 に答える