At first I want to say that request doesn't mean ' mysql query '
So what request mean? I answer to it on example.
Question:
How many times in a one minute, every user request this php page? How to measure it in high performance?
At the beginning of your php scripts you can retrieve info about the request from the $_SERVER
global variable. If you var_dump
the $_SERVER
variable you can see what information is available about the request. I imagine that something like $_SERVER['REQUEST_URI']
or $_SERVER['SCRIPT_FILENAME']
will hold the info that you need. Store that info plus the user id and the date in a mysql table and you should be set?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.