public marks

PUBLIC MARKS from camel with tags code & upload

12 January 2008 13:00

Monitoring File Uploads using Ajax and PHP - PHP articles and tutorials, MySQL, PostgreSQL

by 1 other
Because of the limitations of HTTP, it is difficult to monitor the status of files as they are uploaded via HTML forms. While other programming languages have built-in methods to monitor file uploads, PHP does not. This article shows how to implement such a solution in PHP. In order to achieve this, the APC (Alternative PHP Cache) PHP extension is required, as well as PHP 5. Specifically, APC 3.0.13 or newer and PHP 5.2 or newer are required for the code in this article to work. We will cover installation of APC in the next section. It is assumed you already have a working PHP 5.2 installation.