PHP禁止显示警告提示

版权声明:转载请注明出处http://blog.csdn.net/xuaho0907 https://blog.csdn.net/xuaho0907/article/details/82531223

在代码开始的时候加上 error_reporting(0); //禁止显示PHP警告提示,例如:

<?php

    error_reporting(0);

    ........

    ........

    ........

?>

即可。

猜你喜欢

转载自blog.csdn.net/xuaho0907/article/details/82531223