SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2012
    0 Post(s)
    0 Thread(s)

    Show mysql query sent from php file

    hi i need a php tool or framework or script ,who can tell me , every php script
    how many sql query send , and from where , i have already see this tool
    in a webagency in france but i can't remember the name .

    when i put my browser to

    in the footer of the page i can see all sql query send from this page and if is sent from a include file the path of the file .

    i have tried Mysql tail -f /tmp/mysql.log , i cann see all queris sent to the server , but i have many
    websites , and i don't know the path of the file who sent the query

    Sorry for my Bad english !!!

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Atlanta, GA, USA
    73 Post(s)
    0 Thread(s)
    There's no 'page' attached to a connection. To 'track' this in any form would require adding a new table to your database, and sending additional queries to that table to identify the page and query sent.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts