Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement