• Hi,
    in benchmarkClass.php (function bench_networkspeed)
    how about using wp_remote_get function instead of file_get_contents?

    do
    {
    	$tmp=wp_remote_get('https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.js');.
    	$data.=$tmp["body"];
    	$count++;
    }
    while ($count<5);

    In this way you can avoid the allow_url_fopen problem.

    https://www.ads-software.com/plugins/benchmark/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Benchmark] Transfer speed and file_get_contents’ is closed to new replies.