I want to log errors to a file using this method:
$tpath = "/storage/my-errors.log";
error_log("You messed up!", 3, $tpath);
I have set permissions on the path to 777
and it should save this value "You messed up!"
into the file, but I can't figure it out.
I made an error myself, but it did not get saved in the log file, just messaged "You messed up!"
!
I also tried:
ini_set("log_errors", 1);
ini_set("error_log", "mypath");
error_log( "Hello, errors!" );