Loading time of php page in apache server

前端 未结 4 1229
长情又很酷
长情又很酷 2021-01-07 08:38

Is it possible to know the time taken by Apache server to load a PHP page? Is there any log file generated inside Apache server for every page which is running under Apache

4条回答
  •  不要未来只要你来
    2021-01-07 09:28

    You may use this to create log file yourself:

    in top of header file:

    $process_start = date('H:i:s');
    

    in footer file

    $process_end = date('H:i:s');
    echo "
    process_start {$process_start}
    process_end {$process_end}"

    Not best way but may work

提交回复
热议问题