I have a script located in home/user/public_html/scrip/sript.php
.
What I want is that when I run the script and there are errors an error_log.txt
file to be generated in the same location as the script.
The errors are generated but in a common location for all services but I want to know if it's possible to setup this for a specific location of a script.