Installation of ApPHP AJAX File Uploader (version 2.0.0 or above)

A new installation of ApPHP AJAX File Uploader is a very straight forward process:


[top]

Step 1. Uncompressing downloaded file.


Uncompress the ApPHP AJAX File Uploader version 2.x.x script archive. The archive will create a directory called "PHPAFU_2XX".


[top]

Step 2. Uploading files.


Upload content of this folder (all files and sub-directories it includes) to your document root (public_html, www, httpdocs etc.) or your "uploader directory" using FTP.
Pay attention (for Linux users): DON'T use the capital letters in the name of the folder.

For example:

public_html/
or
public_html/{uploader directory}/


[top]

Step 3. Running example file.


Now you can run the example file. To do this, open a browser and type in Address Bar following:

http://localhost/{uploader directory}/code_example.php
or
http://{www.yourdomain.com}/{uploader directory}/code_example.php


Congratulations, you now have ApPHP AJAX File Uploader v2.x.x. Installed!



Installation of PECL uploadprogress extension

If you want to enable the progress tracking feature you have to download and install on your server PECL uploadprogress extension:

For Lunux (http://pecl.php.net/package/uploadprogress)
For Windows (http://downloads.php.net/pierre/php_uploadprogress.zip)

To check if PECL is already installed run File Uploader with show progress and debugging options turned on. You will see a message that describes you whether the extension is installed or not.


[top]

2.1 On Windows


1. Copy php_uploadprogress.dll file from pecl\ folder into the path set for extension_dir in php.ini. (usually {PHP_PATH}\ext\)

2. Open php.ini and verify that extension_dir is set to {PHP_PATH}\ext\

3. Add the following to php.ini:

extension=php_uploadprogress.dll
uploadprogress.file.filename_template="C:\WINDOWS\TEMP\upt_%s.txt"

4. Restart Apache.


[top]

2.2 On UNIX/MAC


1. Run the following command

pecl install uploadprogress

2. Add the following to php.ini

extension=uploadprogress.so

3. If you have problems running pecl install uploadprogress, do the following:

3.1. Download the PECL uploadprogress extension

3.2. Extract the uploadprogress-2.x.x.tgz archive, cd into the extracted folder and run these commands in Terminal:

phpize		# prepares the PHP extension for compiling
./configure
make
sudo make install

3.3. Check that the directory for the extensions is correct. The last line of the output returned from the make install command (on my system) is:

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20060613/

Open php.ini and edit the extension_dir directive, replacing it with this path.

3.4. Add the extension to php.ini by adding this line extension=uploadprogress.so

3.5. Restart Apache.


[top]

2.3 On public (shared) hosting


If your server is managed by the hosting company please ask technical support to install this php extension for you.