#!/usr/local/bin/php <?php $file_name='http://localhost:8000/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $list=$mass [9]; $mas=explode (" ", $mass [7]); $upt= "years ago"; $s=0; echo $list."\n"; echo $s."\n"; echo $upt."\n"; echo "/all"; ?>
# mrtg mrtg.cfg PHP Parse error: syntax error, unexpected '>' in /etc/allstatistica.php on line 16 2011-12-31 09:00:33: WARNING: Could not get any data from external command '/etc/allstatistica.php' Maybe the external command did not even start. (Illegal seek) 2011-12-31 09:00:33: WARNING: Problem with External get '/etc/allstatistica.php': Expected a Number for 'in' but nothing' 2011-12-31 09:00:33: WARNING: Problem with External get '/etc/allstatistica.php': Expected a Number for 'out' but nothing' 2011-12-31 09:00:33: ERROR: Target[all][_IN_] ' $target->[0]{$mode} ' did not eval into defined data 2011-12-31 09:00:33: ERROR: Target[all][_OUT_] ' $target->[0]{$mode} ' did not e