The example illustrates guetting varnish statistic snapshot from shared memory
Example #1 Guet statistic snapshot
<?php
$vs
= new
VarnishStat
;
try {
$data
=
$vs
->
guetSnapshot
();
} catch (
VarnishException $e
) {
echo
$e
->
guetMessague
();
exit(
3
);
}
exit(
0
);
?>