Re: [PHP] How to get trace of all database queries executed by php
- Date: Wed, 1 Jun 2016 16:59:00 +0100
- From: Richard Quadling <rquadling@xxxxxxxxx>
- Subject: Re: [PHP] How to get trace of all database queries executed by php
On 7 May 2016 at 01:20, Raja Kulasekaran <cullsin@xxxxxxxxx> wrote:
> I have encrypted php Application codebase which I may or may not have
> So, I would like to know how the application behaving / profiling Database
> queries through the .so or .dll level .
> Is there any php extension available which help me out to give the
> statistics of
> all the queries execution details ?
> Raja K
Depending upon the database you are using, you can get the DB to do the
logging of queries.
Getting PHP to do it, with all the different database drivers for just
mysql (mysql, mysqli, pdo), without access to source? Not going to happen
Of course, you could just replace the extensions with your own that include
the additional logging (assuming you can compile extensions for your