%PDF- %PDF-
Direktori : /data/www_bck/varak.net_bck/wow2.varak.net/xml/ |
Current File : //data/www_bck/varak.net_bck/wow2.varak.net/xml/recent.php |
<?php ob_start(); include("../lib.php"); $tzac=getmicrotime(); header("Content-type: text/plain"); $db = sqlite_open("recent.db"); $res = sqlite_query($db, "select artist, album, track, time from recent order by time"); $i = 0; while($r = sqlite_fetch_array($res)) { $i++; $time = date("Y-m-d H:i:s", $r[3]); echo "$i;$r[2];$r[0];$r[1];$time\n"; } $mem = sprintf("%01.2f", memory_get_peak_usage(true)/(1024*2024)); $tkon=getmicrotime(); $time=$tkon-$tzac; $time = sprintf("%01.4f", $time); header("X-Mem-Used: $mem MB"); header("X-Runtime: $time sec"); echo ob_get_clean(); ?>