揮発性のメモ2

http://d.hatena.ne.jp/iww/

uptime取得

<?php
/**
 * PCが起動してからの秒数
 * @return  integer
 */
function uptime(){
    return intval(file_get_contents("/proc/uptime"));
}

print( uptime()."\r" );