note 104599 deleted from function.set-error-handler by danbrown

From: Date: Fri, 24 Jun 2011 19:45:22 +0000
Subject: note 104599 deleted from function.set-error-handler by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180934@lists.php.net to get a copy of this message
Note Submitter: ahmed dot 3abdolah at gmail dot com ---- Hello , this function help you to have a best security from error php and ...... and you should travel with set_error_handler : look at this : <? /*/ |------------------------------------------->|*| * Powred By Mr-O --------------------------->|*| * This Is Project ::->F.F.P----------------->|*| * Fatale Functions PHP .-------------------->|*| * Allready Created By MR-O .---------------->|*| * It's A Free Functions And Class For Use.-->|*| |------------------------------------------->|*| /*/ function error_protect($errno,$errstr,$errfile,$errline){ if(error_reporting()>0){ $file = "error_protect.txt"; // you should create a file .txt and change this name file_put_contents($file," ERROR type [$errno] :-> [$errstr] in file :-> $errfile , in line :-> $errline \n", FILE_APPEND | LOCK_EX); } } set_error_handler("error_protect",E_ALL); //<-- This is the best solution to have a nice function ?> a big thanks from TEAMDZ . MR-O

« previous php.notes (#180934) next »