php页面显示squid服务信息
[ 2009/10/09 17:05 | by selboo ]
<?php
echo '<pre>';
$squidinfo= system('/usr/local/squid/bin/squidclient -p 8080 mgr:info', $retval);
// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $squidinfo. '
<hr />Return value: ' . $retval;
?>
echo '<pre>';
$squidinfo= system('/usr/local/squid/bin/squidclient -p 8080 mgr:info', $retval);
// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $squidinfo. '
<hr />Return value: ' . $retval;
?>