嘿家伙, 所以我偶尔会在使用file_get_contents时遇到错误,并在我的脚本中使用了一些公平的位。我知道我可以@file_get_contents
单独压制的错误,我也可以设置全局错误信息与file_get_contents()的全局错误处理PHP
//error handler function
function customError($errno)
{
echo 'Oh No!';
}
//set error handler
set_error_handler("customError");
但我怎么专门为所有file_get_content的使用错误处理程序?
感谢