Please wait while we load your page...
 

Announcements

PHP Manual :: Basic VarnishStat usage



Basic VarnishAdmin usage || Basic VarnishLog usage || Examples || PHP Manual

The example illustrates getting varnish statistic snapshot from shared memory

Example #1 Get statistic snapshot

<?php

$vs 
= new VarnishStat;

try {
    
$data $vs->getSnapshot();
} catch (
VarnishException $e) {
    echo 
$e->getMessage();
    exit(
3);
}

exit(
0);
?>


Basic VarnishAdmin usage || Basic VarnishLog usage || Examples || PHP Manual
Live Chat Not Available