+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: I need php code for downloading zip files from my site !!

  1. #1
    careerbridge's Avatar
    careerbridge is offline x10 Sophmore careerbridge is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    India
    Posts
    126

    Question I need php code for downloading zip files from my site !!

    Hi guys,

    An issue, my site contains zip files whcih are available for the visitors to download. But I don't want to disclose the actual path of the zip file (or http address of the file on the site)

    ok consider the case, the zip file is.......

    /database/attachments/7377.zip


    But I will give a link to my php file like this one in this forum........

    http://forums.x10hosting.com/attachm...1&d=1152532665

    how can I do it?? please help

    CRB

  2. #2
    nightscream is offline x10 Lieutenant nightscream is an unknown quantity at this point
    Join Date
    Feb 2006
    Location
    Hallaar, Belgium
    Posts
    474

    Re: I need php code for downloading zip files from my site !!

    can you give us the link to the download page?
    because from there we have to go further
    ------------------------------------------------------------------------------------------
    If you have any troubles with a website or a script, just send me a pm.

    I also code websites in xHTML/css, can code javascript and php too if needed

  3. #3
    careerbridge's Avatar
    careerbridge is offline x10 Sophmore careerbridge is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    India
    Posts
    126

  4. #4
    nightscream is offline x10 Lieutenant nightscream is an unknown quantity at this point
    Join Date
    Feb 2006
    Location
    Hallaar, Belgium
    Posts
    474

    Re: I need php code for downloading zip files from my site !!

    So you mean they get a fake url to the file
    ------------------------------------------------------------------------------------------
    If you have any troubles with a website or a script, just send me a pm.

    I also code websites in xHTML/css, can code javascript and php too if needed

  5. #5
    careerbridge's Avatar
    careerbridge is offline x10 Sophmore careerbridge is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    India
    Posts
    126

    Re: I need php code for downloading zip files from my site !!

    don't say fake.... u just understand that no forums will give the actuall http address of the file.

    See one downlad link on x10 forum.... http://forums.x10hosting.com/attachm...1&d=1152532665

    See, it is pointed to a php file and not to a zip file. But it prompts to download a zip file !!

    CRB

  6. #6
    Torch's Avatar
    Torch is offline x10 Lieutenant Torch is an unknown quantity at this point
    Join Date
    Apr 2006
    Location
    Belgrade, Serbia
    Posts
    317

    Re: I need php code for downloading zip files from my site !!

    I've PM'd you the script. Hope it's what you need

  7. #7
    careerbridge's Avatar
    careerbridge is offline x10 Sophmore careerbridge is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    India
    Posts
    126

    Re: I need php code for downloading zip files from my site !!

    Wow, thats cool... thanx a lot. Yes, I got wat i need !! ;) You got my 51 points......
    Last edited by careerbridge; 07-16-2006 at 08:18 AM.

  8. #8
    Cynical's Avatar
    Cynical is offline Lord Of The Keys Cynical is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Massachusetts, USA
    Posts
    1,746

    Re: I need php code for downloading zip files from my site !!

    Just so you know, people can still figure out the proper URL for the file ;).
    Seven: This rule is so underrated, keep your family and business completely separated.

  9. #9
    Torch's Avatar
    Torch is offline x10 Lieutenant Torch is an unknown quantity at this point
    Join Date
    Apr 2006
    Location
    Belgrade, Serbia
    Posts
    317

    Re: I need php code for downloading zip files from my site !!

    Of course, physical path can always be figured out, if you know how, and there ain't a script that could completely hide it. One way that bypasses any script is just a simple analysis of HTTP headers.

    Only way to completely mask it is, well, not to have physical path at all. Instead, storing files in database. That works fine with smaller files, but with larger ones it makes one hell of a lot strain on DB server, so it's not such a great solution.
    Last edited by Torch; 07-16-2006 at 10:10 AM.

  10. #10
    dharmil's Avatar
    dharmil is offline x10 Elder dharmil is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Avenel New Jersey
    Posts
    828

    Re: I need php code for downloading zip files from my site !!

    um you can just do


    Code:
    IndexIgnore *
    so the files wont show up in the dictonry it will hide them...

    1. Open Note Pad Put this in there
    Code:
    IndexIgnore *
    2. Then save it as .htaccess
    3. Upload it to the folder you want to protect or to the root to protect all folders with out indexes...

    Last edited by dharmil; 07-16-2006 at 10:38 AM.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Link Exchange
    By Conor in forum Scripts & 3rd Party Apps
    Replies: 117
    Last Post: 12-09-2007, 12:20 PM
  2. how to put PHP and this code
    By Derek in forum Free Hosting
    Replies: 1
    Last Post: 01-24-2006, 07:07 PM
  3. Php Code Wanted! Payin 10 Pt.
    By Brandon in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 09-01-2005, 12:33 AM
  4. Links to Many Many Resources!
    By Superpoo in forum Scripts & 3rd Party Apps
    Replies: 18
    Last Post: 03-29-2005, 06:22 AM
  5. Ad Code and Site Music
    By GMS in forum Free Hosting
    Replies: 6
    Last Post: 03-06-2005, 12:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers