What would like you in a File Downloader Script?

Discussion in 'PHP' started by Barti1987, Oct 11, 2006.

  1. #1
    I am in the process of creating a File Download PHP Script.

    I would like to get some ideas as to what good "features" I should have.

    Currently this is what I have in mind:

    Main Features:
    ---------------
    * Plug-n-Play Site
    * Complete Download System
    * Ability to add categories (unlimited tree)
    * Optional Category Image
    * Optional Mod-Rewrite (Easy URLs)
    * Optional Image Preview (thumbnail) for Image Files
    * Directories can act as Image gallery, with slideshows
    * Tell a Friend system for all files
    * Optional Anonymous uploads to system
    -> Limit file size and extension types
    -> Enable Report of "bad files"

    Optional user system:
    ---------------------
    * Allow users to sign-up
    * Allow users to upload files
    * Limit File Size and Extensions
    * Allow users to have private albums as well
    * Limit upload capacity for users
    * Allow users to communicate via email and/or PM
    * Enable/Disable profile page for users with their statistics

    FrontPage:
    ----------
    * Easy editable index.php template (changes reflect entire site)
    * TOS, Privacy Policy and FAQ pages to reflect your site configuration
    * User registration, forgot pass, login and contact us pages
    * Optional Image Captcha for Contact page
    * Optional Email Confirmation

    Administrator CP:
    -----------------
    * Complete administrator control panel
    * User Management Option
    * File Management Option

    Advertising System:
    -------------------
    * Built in advertisement system, image/flash banners
    * Built in contextual advertisement system (Adsense, YPN, Adbrite, etc)

    I already finished installation procedure and template, ready for coding (will do it in a week or so, too many midterms).

    Peace,
     
    Barti1987, Oct 11, 2006 IP
  2. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #2
    Oo! It should increase upload/download rate by 100%
     
    BRUm, Oct 11, 2006 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    You mean specify the download upload speed for each user?

    I thought it was hard till I saw this function:

    
    <?php
    
    $file = "test.mp3"; // file to be send to the client
    $speed = 8.5; // 8,5 kb/s download rate limit
    
    if(file_exists($file) && is_file($file)) {
    
       header("Cache-control: private");
       header("Content-Type: application/octet-stream"); 
       header("Content-Length: ".filesize($file));
       header("Content-Disposition: filename=$file" . "%20"); 
    
       flush();
    
       $fd = fopen($file, "r");
       while(!feof($fd)) {
    		 echo fread($fd, round($speed*1024));
    	   flush();
    	   sleep(1);
       }
       fclose ($fd);
    
    }
    ?>
    
    PHP:
    Peace,
     
    Barti1987, Oct 11, 2006 IP
  4. latiff

    latiff Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    1. How many people have downloaded a certain file.
    2. User rating system for that file plus reviews/testimonials.
    3. Add Technorati-type tags for each downloadable file page.
     
    latiff, Oct 11, 2006 IP