I am trying to get php to view/access the mysql error logs.
Can php in any way determine where the error log file is stored?
Is there some setting it can read to find that out?
My purpose is to create a log viewer, for multiple types of logs, and one of my needs is to view the variety of mysql logs.
But I don't want to have to manually configure folder path locations, and especially if this code is to be run on a shared server somewhere, I don't want to cause any security problems/issues.
Is there a safe way to determine the log files location automatically from with in php?
Thank you