<html>
<head>
<title></title>
</head>
<body>
<?php
if(isset($_GET['progress_key'])) {
$status = apc_fetch('upload_'.$_GET['progress_key']);
if($status['current']<1)
{
$percent=0;
echo $percent;
}
else
{
$percent = round($status['current']/$status['total']*100);
echo $percent;
}
}
?>
<?php
header("Percent:".$percent);
?>
</body>
</html>