Need a quick PHP "download" script written.

Discussion in 'Programming' started by kermado, Aug 24, 2008.

  1. #1
    Hello!

    I need someone to write me some code that will take the server/root path (above public the directory) to a file - e.g: /var/www/vhosts/domain.co.uk/download/file-0-1.a.zip
    ...and serve the file to the user.

    An encrypted path should be passed in the URL - e.g. download.php?path=abcdefg12345678

    Users must not be able to determine the path the the file. I.e. basic base64 is not good enough.

    The script must also prevent downloads outside of the "download" directory - /var/www/vhosts/domain.co.uk/download/

    Finally, the script should only allow ZIP (.zip) and TEXT (.txt) files to be downloaded. No other file types (e.g. .php) should be allowed.

    This shouldn't take an experienced programmer too long. Please PM me with your quotations. I'll need the code to be delivered within 24 hours. Payment via PayPal only.
     
    kermado, Aug 24, 2008 IP
  2. al-zabir

    al-zabir Active Member

    Messages:
    208
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    I am interested. PM me
     
    al-zabir, Aug 24, 2008 IP
  3. AdnanAhsan

    AdnanAhsan Well-Known Member

    Messages:
    601
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Do you have a setup script on your server and you want code for that? please pm me details i am also interested
    Thanks.
     
    AdnanAhsan, Aug 24, 2008 IP
  4. kermado

    kermado Guest

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Guys, I don't know what more to add. I just need a single PHP page that takes the value of a path passed to it.

    E.g. download.php?path=some_encoded_string

    I already have a page that outputs the names of the files in a directory. These will be linked to the download script - e.g:

    <a href="download.php?path=some_encoded_string">File Name</a>

    Hence, I also need a function that will encode the file path on this page. The file path will then need to be decoded in download.php. ...and the file then served to the user. The file sizes are not too large (0.5 - 3 Mb).

    I also need some protection added to the download.php script so that if someone does figure out the method used to encode/encrypt the download path, then can then only download files (with a .zip or .txt file type) from the "downloads" directory.

    If you can do this, please PM me how much you will charge. You will need to provide me with the file that will serve the download and a function to encode/encrypt the file path (which will then be passed to the download script).
     
    kermado, Aug 24, 2008 IP
  5. AdnanAhsan

    AdnanAhsan Well-Known Member

    Messages:
    601
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    wel add me on msn i will have a look at your script ok and i will try my best to do your job ;) i will do some modification and make your script work as you want ;)

    Thanks
     
    AdnanAhsan, Aug 24, 2008 IP
  6. sajidshabbir

    sajidshabbir Well-Known Member

    Messages:
    605
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    I can do this for you
    Contact with me on MSN or Yahoo ASAP

    Regards,
     
    sajidshabbir, Aug 24, 2008 IP
  7. logylaps

    logylaps Active Member

    Messages:
    761
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    85
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Can do this for $25 in 24 hours.

    Let me know if the job is still available.
     
    logylaps, Aug 24, 2008 IP
  8. kermado

    kermado Guest

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    PMs sent ;)
     
    kermado, Aug 24, 2008 IP
  9. AliasXNeo

    AliasXNeo Banned

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    Can custom code this for you in less than a day for $20. Only $10 if I do not finish in 24 hours. I Have experience with security and file permissions so this will be a breeze. PM me if you're interested.
     
    AliasXNeo, Aug 24, 2008 IP
  10. phptechie

    phptechie Well-Known Member

    Messages:
    885
    Likes Received:
    10
    Best Answers:
    2
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #10
    Hi,

    I'm a Freelance PHP MySQL programmer with 5+ yrs of exp , checkout my online portfolio linked at my signature to know more abt my skill-sets , projects , client references & contact details.

    I'm interested to work on this download this script.

    Pls do feel free to contact me for further details.

    Thanks.
     
    phptechie, Aug 24, 2008 IP
  11. kermado

    kermado Guest

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #11
    Hi everyone!

    The position has now been filled.

    Thank you.
     
    kermado, Aug 24, 2008 IP
  12. sajidshabbir

    sajidshabbir Well-Known Member

    Messages:
    605
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #12
    Work has been done by me...

    Waiting for Itrader now....:D
     
    sajidshabbir, Aug 25, 2008 IP
  13. kermado

    kermado Guest

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #13
    I offered the work to both sajidshabbir and Alice. I'll be using Alice's script since the code is less bulky. A big thanks to both of you.
     
    kermado, Aug 25, 2008 IP