Useful notes & manuals
from the
world wide web
L:
P:
Register now!
Creating an upload progress bar in PHP with APC PHP
Article from: http://www.ultramegatech.com/blog/2008/12/creating-upload-progress-bar-php/ Created by tlw on 07.12.2024 @ 03:12

In this tutorial I will explain how to create a progress bar for PHP file uploads. There is no method built into PHP for returning the status of an upload in progress, so this requires a module called the Alternative PHP Cache (APC). This allows you to store data across sessions and includes built-in functionality for storing/returning file upload stats.

This tutorial assumes you have some basic understanding of XHTML, PHP, and JavaScript. If you don't, it may be hard to understand.

Installing APC is beyond the scope of this tutorial, so visit the APC Installation page for help or talk to your host. To find out if APC is installed already, create a PHP file on your site containing "<?php phpinfo(); ?>", visit it in your browser, and look for a section titled 'APC.' If it is present, then it is installed.

progress   bar   apc   upload   files
 
Created by THE LOST WEB © 2009-2012