<?php function customError($code, $msg, $file, $line, $context) { header("location: " . FOLDER_RELATIVE_BASE . "app/user/user_story/user_error.php"); die(); } //set_error_handler("customError"); ?>