Re: How to get trace of all database queries executed by php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7 May 2016 at 01:20, Raja Kulasekaran <cullsin@xxxxxxxxx> wrote:

> Hi,
>
> I have encrypted php Application codebase which I may or may not have
> access.
>
> 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 ?
>
> Thanks,
> 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
easily.

Of course, you could just replace the extensions with your own that include
the additional logging (assuming you can compile extensions for your
platform).

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux