File "test.php"
Full path: /www/beacon/test.php
File size: 432 B
MIME-type: text/x-php
Charset: utf-8
<?php
// ("whoami" コマンドをパスに有するシステム上で)
// 実行中のphp/httpdプロセスを所有するユーザーの名前を出力
$output=null;
$retval=null;
exec('tail -n 10 /www/beacon/data/192.168.0.225.txt', $output, $retval);
echo "Returned with status $retval and output:\n";
$ct = count($output);
for($i =0;$i < $ct;$i++)
{
$data_split = expload($output[$i],","
print $output[$i] ."<BR>";
}
?>