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

From: Date: Wed, 01 Jun 2016 15:59:00 +0000
Subject: Re: How to get trace of all database queries executed by php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-325615@lists.php.net to get a copy of this message
On 7 May 2016 at 01:20, Raja Kulasekaran <cullsin@gmail.com> 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).

« previous php.general (#325615) next »