Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts

    Question When I offer downloads I usually offer them in a link

    When I offer downloads I usually offer them in a link in a anchor in a sub folder. Is it better to put your downloads in a web folder above the web root directory?

    Another thing I want is some sort of download manager so that only certain people who log in can download items and only for a certain time, say 3 days.
    I know how to do this but I just wanted to know if there is good code out there i can use.

    best regards

    Nikos


  • #2
    New Coder
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There is a nifty web program called File Manager Pro, out of the UK.. made by Idotcommunications... pretty cool.. it might be a little more than what you are looking for though.

  • #3
    Regular Coder
    Join Date
    Nov 2005
    Location
    North Canton, Ohio
    Posts
    118
    Thanks
    11
    Thanked 4 Times in 4 Posts
    You could upload all of your files in a database as a blob type, and you can just make a little snippet page to download files based on a get method.
    ./download.php?id=1 would be one file
    ./download.php?id=2 would be another

    you can keep track of how many downloads are made and can be made with php. You can also just use a easy to set up phpmyadmin for your database to upload the files at anytime.

    Here's a good way of doing it: http://www.php-mysql-tutorial.com/php-mysql-upload.php
    But if you use this page, make sure you change the line in download.php of:
    <a href="download.php?id=<?php=$id;?>"><?php=$name;?></a> <br>
    to
    <a href="download.php?id=<?php echo $id; ?>"><?php echo $name; ?></a> <br>
    Last edited by Blaher; 12-21-2007 at 09:53 PM.

  • #4
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts
    impressive understanding, thanks



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •