Deployment PHP File Uploader
PHP File Uploader is 100% HTML and JavaScript code on the client, and PHP code on the server, and can be setup on your web server in just 5 minutes, simply by following this setup guide.
1. Deploying Uploader Client files.
The "phpuploader" folder and all file it contains (located in the archive) should be deployed to http://{your site}/{your application}/phpuploader/ on your web site.
2. Adding Uploader into PHP page.
- //Step 1: Register Uploader component to your page
- <?php require_once "phpuploader/include_phpuploader.php" ?>
- <html>
- <body>
- <?php
- //Step 2: Create Uploader object.
- $uploader=new PhpUploader();
- //Step 3: The files will be uploaded to the following folder directly.
- $uploader->SaveDirectory="savefiles";
- //Step 4: Render Uploader
- $uploader->Render();
- ?>
- </body>
- </html>