uploadprogress.php (2014-03-03 17:09:40 +0100, commit:e2a5b60)
Go to the documentation of this file.
1 <?php
2 
3 $json['apc_enabled'] = function_exists('apc_fetch');
4 
5 if (isset($_GET['APC_UPLOAD_PROGRESS']) && !empty($json['apc_enabled'])) {
6  $status = apc_fetch('upload_' . $_GET['APC_UPLOAD_PROGRESS']);
7 
8  if ($status) {
9  $json['percent'] = (!empty($status['total']))
10  ? $status['current'] * 100 / $status['total']
11  : 0;
12  }
13 }
14 
15 echo json_encode($json);
$json['apc_enabled']