Installation of ApPHP AJAX File Uploader (v2.0.0 or above)


Installation of ApPHP AJAX File Uploader


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

Step 1. Uncompressing downloaded file.


Uncompress the ApPHP AJAX File Uploader script archive. The archive will create a directory called "PHPAFU_XYZ", where XYZ - is a number of current version.


Step 2. Uploading files.

Upload content of sub-directory fileuploader/ (all files and sub-directories it includes) to your document root (public_html, www, httpdocs etc.) or your uploader directory using FTP.

Pay attention: DON'T use the capital letters in the name of the folder (for Linux users).

For example:
public_html/
or
public_html/{uploader directory}/


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 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://windows.php.net/downloads/pecl/releases/)

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.


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.


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, change directory (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 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.


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.


Create Your Free Account
Please remember that this information is essential to use our services correctly.
After creating the account you will be able to download all of our FREE products.
Fields marked with * are mandatory






Please send me information about updates, new products, specials and discounts from ApPHP!
We recommend that your password should be at least 6 characters long and should be different from your username/email. Please use only letters of the English alphabet to enter your name.

Your e-mail address must be valid. We use e-mail for communication purposes (order notifications, etc). Therefore, it is essential to provide a valid e-mail address to be able to use our services correctly.

All your private data is confidential. We will never sell, exchange or market it in any way. Please refer to Privacy Policy.

By clicking "Create Account", you are indicating that you have read and agree to the ApPHP Terms & Conditions.