I'm trying to set up some error logging
register_shutdown_function('shutdown');
but whenever I try to include a file inside of the shutdown function - it cannot be found, even though it exists and is included just fine throughout my application elsewhere
function shutdown()
{
require_once LIB_DIR.'phpmailer/class.phpmailer.php';
}
Gives me an error saying the file could not be found.. am I missing something here, does the relative path to a file change inside the shutdown function or something?