PHP code example of zoa-chou / xhprof-collector

1. Go to this page and download the library: Download zoa-chou/xhprof-collector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zoa-chou / xhprof-collector example snippets




location ~ .*\.php?$ {
    fastcgi_param PHP_VALUE "auto_prepend_file=/path/to/your/collector.php";
    fastcgi_pass  127.0.0.1:9000;
    fastcgi_index index.php;
    
ini
auto_prepend_file=/path/to/your/collector.php