You can test it with any fatal error, Karl. For example, if I add the line:
<?php doesnt_exist();?>
anywhere in any page, the page will render partially up to this line, then write the...
Type: Posts; User: huluganfantasy
You can test it with any fatal error, Karl. For example, if I add the line:
<?php doesnt_exist();?>
anywhere in any page, the page will render partially up to this line, then write the...
This is the code that works in the development environment:
<?php
// Error handling
function errorHandler($num, $str, $file, $line) {
$text = "error...
OK, I got an absolute path using "echo __DIR__" And the shutdown_function logs the errors correctly now, but there is another problem :) :
The user will see a blank page. I would like to redirect...
I don't know if you changed anything, but "error_reporting(0);" is working correctly for me now. I have written an error handler function as well as a register_shut_down function to catch fatal...
In case I wasn't clear Karl. I want to see errors. Can you please tell me how I can do that WITHOUT also showing sensitive information to the general public.
EDIT
I just tested:
...
Please read my post again Karl. I am not "hiding" any problems. I want errors recorded in a log. I can easily check the log and fix any errors. I do not want errors displayed because it puts a map of...
How do I stop PHP errors from displaying to users?
I've tried this code at the top of my PHP script:
ini_set ('error_reporting', E_ALL ^ E_DEPRECATED);
ini_set...