I was given the task to upload a script on some old production server and, as expected, many things don't work.
I wanted to know if it was possible to turn on error reporting for a single script without having access to the actual php.ini
file.
I've tried this: PHP production server - turn on error messages, using:
ini_set('display_errors', 'On');
ini_set('display_errors', 1);
ini_set('display_errors', '1');
But that won't work on this server. If I trigger an error, e.g.:
public static funtion myfunc() { … }
Or I try to use an undefined function, e.g.:
password_verify();
I end up staring at a blank screen. I also don't have access to any (useful) logs. I've also tried this: How to get useful error messages in PHP?, but I don't have access to any .htaccess
file either.
Is there another way to enable this feature? Or is it possible to catch critical errors and display their information, programatically? The server's PHP version is 5.3 (5.3.28).