I want to save all script errors in a txt file, I know that there is a function to change the log file:
ini_set("error_log", "file path");
Is that function changing the error_log path in the php.ini?
Or it just log that PHP file errors to a specific file rather that the error_log file?
So for example if I have a file called 'file.php' and that file contains some PHP code, If an error occurs there it's saved to that custom files.
But for other PHP files, When an error occurs, It's saved to the default error_log file.
How to do that?