I'm trying to find a way which php/js script is accessing certain database table I researched a lot but can't find any solution.
what I want to do is something like list all scripts(especially php) that access/uses specific database table
ex. MySQL TableA (target table)
list all scripts that access TableA
- scriptA.php
- scriptB.php
- scriptC.php
etc.
how can I do this in real time? if not possible output the list in a log file or some file that I can list?
if there is no way how would you suggest to track the scripts that accesses TableA?