diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-18 17:29:28 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-18 17:29:28 +0100 |
commit | 7a9c5315ff4dd8ac6e9331c7fbfcabd94d661dd9 (patch) | |
tree | f89efa39f83595bbfaf72dad9e581a1fa3447a58 /getstatus.php.bak | |
parent | 31a11bace3b5c407f89f59805b80469abe8a581c (diff) | |
download | istreamdev-7a9c5315ff4dd8ac6e9331c7fbfcabd94d661dd9.tar.gz istreamdev-7a9c5315ff4dd8ac6e9331c7fbfcabd94d661dd9.tar.bz2 |
cleanup
Diffstat (limited to 'getstatus.php.bak')
-rwxr-xr-x | getstatus.php.bak | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/getstatus.php.bak b/getstatus.php.bak deleted file mode 100755 index 368991b..0000000 --- a/getstatus.php.bak +++ /dev/null @@ -1,30 +0,0 @@ -<?php -header('Content-type: application/json'); -$oldtree = null; -$time = time(); -$i = 0; -while((time() - $time) < 29) -{ - $tree = file_get_contents("status.txt"); - - if ($tree !== $oldtree ) - { - $i+=1; - print $tree; - ob_flush(); - flush(); - } - $data = json_decode($tree); - if ($data->status == "ready") - { - break; - } else if ($data->status == "error") - { - break; - } - $oldtree = $tree; - usleep(1000); - -} - -?> |