war doch nur ein Beispiel...
ich gebs auf, raffe es einfach nicht...
					ich gebs auf, raffe es einfach nicht...
<?php
$handle = popen("grep 'Sent [0-9]* bytes' messages | awk '{print $7+$10};'", "r");
  while (!feof($handle)) {
   $buffer = fgets($handle, 4096);
echo $buffer;
}
?>
$total = 0; 
$total = $total + $buffer; 
<?php
$handle = popen("grep 'Sent [0-9]* bytes' messages | awk '{print $7+$10};'", "r");
$total = 0;
  while (!feof($handle)) {
   $buffer = fgets($handle, 4096);
$total = $total + $buffer;
echo $total;
}
?>

							
						
Comment