Horst Azeglio Posted May 30, 2006 Share Posted May 30, 2006 Is it possible to disable warning errors with a php function? I cannot access PHP.ini Link to comment https://forums.phpfreaks.com/topic/10790-disable-warning-errors/ Share on other sites More sharing options...
poirot Posted May 30, 2006 Share Posted May 30, 2006 Yes, you can use error_reporting(0)[a href=\"http://www.php.net/error_reporting\" target=\"_blank\"]http://www.php.net/error_reporting[/a] Link to comment https://forums.phpfreaks.com/topic/10790-disable-warning-errors/#findComment-40337 Share on other sites More sharing options...
Horst Azeglio Posted May 30, 2006 Author Share Posted May 30, 2006 Thanks a lot, it works perfectly :) Link to comment https://forums.phpfreaks.com/topic/10790-disable-warning-errors/#findComment-40339 Share on other sites More sharing options...
poirot Posted May 30, 2006 Share Posted May 30, 2006 And if you want to disable error reporting for certain functions only, use error supression:[code]@file_get_contents('file.txt');[/code]This way it won't give you errors. Link to comment https://forums.phpfreaks.com/topic/10790-disable-warning-errors/#findComment-40345 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.