You are on page 1of 3

######################################################################### # DODOUPLOAD VERSION 1.3 # # Written in PHP # # Released on March 03, 2005 under linkware # # Created by Dodo http://pure-essence.

net/ # # Distributed through http://regretless.com/scripts/ # # Please link either site if you use this script. # # You may not redistribute this file without my written permission. # # Feel free to modify this file to your need. # # Please contact me http://pure-essence.net/domain/contact.php # # if you wish to redistribute a modifed version of my script! # # # # ENJOY THE SCRIPT! # ######################################################################### -----------INTRODUCTION -----------This script is partly inspired by http://pix8.net - a used to be free image hosting service. I love the convenience they offered. Back then they don't require you to sign up. You can just browse and upload any image files. They will also rename your file if the name of your file already existed. This all ended when they started to require registration and payment. I wrote this script so I can use my own server that way they used to offer. My script has all the functionalities they have and more. Yet it's very simple to install and use.

---DEMO ---Screenshot http://regretless.com/scripts/ex/dodoupload/screenshot.gif Live Demonstration http://regretless.com/scripts/ex/dodoupload/ with User: demo Pass: test

-------FEATURES -------1. Simple in both installation and usage. 2. Sort your upload files by filenames, size or last update time either ascendingly or descendingly. 3. Automatically renames the file if it has the same name as an existing file and you didn't specify to overwrite the existing file. 4. Customizable interface. 5. Customizable maximum upload size allowed. 6. Check all option for delete checkboxs (see demo) 7. Customizable number of files listed per page. 8. You may choose if you want to list the files by pages or show them all. 9. Delete confirmation 10. Upload one or many files at the same time

-----------REQUIREMENTS ------------

A server with php and .htaccess support. If you are unsure, please contact your tech support! You must know how to chmod files. If you don't, search google for a tutorial.

-----------INSTALLATION -----------The installation is supposed to be easy and fast. 1. Unzip the files. 2. Create a new directory on your server for this script. 3. Open index.php, modify the options. The only required ones are your username and password. 4. Upload all the files into the new directory. 5. Chmod your newly created directory to 777. 6. Run http://yourdomain.com/yournewdir/index.php Log in with the username and password you set. That should be it!

--FAQ --What does chmod mean? - Search "chmod" in google. How can I sort my files? - Click on "Files", "Size(kb)", "Last updated". After that, click on the little arrows to change ascending to descending. Why am I getting a blank page when I run http://yourdomain.com/yournewdir/index.php? - Please chmod your "yournewdir" to 777 otherwise this script will not run. Every time I try to upload, it gives me "Could not copy" - No idea why. Some servers I tested this script on just doesn't allow the php function http://us3.php.net/manual/en/function.move-uploaded-file.php You will need to contact your tech suport to figure that one out. Why am I getting unlink errors? - Files that are not uploaded by this script in the directory may not be deleted by this script unless you chmod them to 777. How do I put the uploaded files in a different directory? - Simply change these lines in your index.php // upload files to where your index.php is $userpath = $_SERVER['DOCUMENT_ROOT'].dirname($_SERVER['PHP_SELF']); // or you may define your own $userpath = "/home/yourusername/www/tmp/img"; // upload files to where your index.php is $httppath = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); // or you may define your own $httppath = "http://yourdomain.com/tmp/img"; -- notice I took out the "//" in front of $userpath and $httppath. You should do

that and fill in the appropriate values. Also make sure you chmod the folder you want to upload to 777. It should work. --------------LIMITED SUPPORT --------------Email me. I might or might not reply depending on my schedule. http://pure-essence.net/domain/contact.php

--LOG --June 25, 2004 - Released version 1.0 December 29, 2004 - Relased version 1.1, now allows multiple file uploads March 03, 2005 - Released version 1.2, allows you to check whether you want to overwrite the old files or have the script rename July 01, 2005 - Released version 1.3, changed HTTP AUTHENTICATION to cookie login. Beautified page number function and a fixed a few bugs. September 08, 2005 - Added global register code

You might also like