PX : code

ApPHP AJAX File Uploader by Chara Miteo
Download this code


Please look here:
http://www.apphp.com/php-ajax-file-uploader/index.php

<?php
 
 
## +---------------------------------------------------------------------------+
  ## | 1. Creating & Calling:                                                    |
  ## +---------------------------------------------------------------------------+
  ## *** define a relative (virtual) path to fileuploader.class.php file
  
define ("UPLOADER_DIR""");                  /* Ex.: "uploader/" */
 ## *** include FileUploader class
  
require_once(UPLOADER_DIR."fileuploader.class.php");
 
 
## *** create FileUploader object
  
$fileUploader = new FileUploader();
 
 
## +---------------------------------------------------------------------------+
  ## | 2. General Settings:                                                      |
  ## +---------------------------------------------------------------------------+
  ##  *** set style for Uploader
  ##  *** "dark", "light", "simple" or your own style
  
$fileUploader->SetStyle("light");
 
## *** set folder where uploaded files are moved to
  
$fileUploader->SetFolder("uploadedfiles");
 
## *** show progress - false|true (PECL UploadProgress extension must be installed first)
  
$fileUploader->ShowProgress(true);
 
 
## +---------------------------------------------------------------------------+
  ## | 5. Display FileUploader:                                                  |
  ## +---------------------------------------------------------------------------+
  
$fileUploader->Display();
    
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.