I have huge project in PHP, which is using mysql_connect
function in lots of files.
My goal is to detect how many times mysql_connect was triggered from PHP. (from this project).
Idea is to not modify existing project files and create some parallel function (trigger) which will run only when this project will call mysql_connect
in PHP.
Is there any way to configure PHP to create some trigger on mysql_connect
? I mean, when PHP will call mysql_connect
, this trigger must detect this and parallely run some another script, which will do counting or other stuff.
Any ideas?