php tutorials, php form validation
Archive Tutorials
Discussion Home
Login / Register

Board List
PHP programming
General

Links
How to save gas 25% or more
Marshall Reddick
Network Marketing Forums
Income Tax Help
Lose 10 Pounds in 3 Weeks
PHP Forum Script
Online Contest

Learn PHP in 47 hours!

Back to General

Search

a download link a download link

a download link

by junkoverloaded on Wed 09/06/2006 07:50 PM

Hi all
Just a quick question. I managed to do a login page in my site. I have a free download section in my site and what i am planning to is to make download sections for the registered members only.  

Now i am stuck up while making a download link for the .zip file. I want to hide the actual location of my .zip file so ppl can't access it from out the restricted area. Like typing that address in browsers and getting my .zip files.  

I have seen in some websites like they have *.php?nrtlayout=13 something like that so the actual link is masked. How do i do that?

[Reply] [Back to Top]

a suggestion and resource

by uclaboyz on Tue 09/12/2006 10:32 AM

Store the information of the downloadable files into a (SQL or text file) database or even in array variable in the code if your list of files is very static. You should store at least the path & filename and unique id-number. You can be creative when thinking what info to store... 

Build a download script that GETs an id number and checks the database for the file with the given id. Then force download for that file, if it's found, otherwise print an error message. 

More details can be found here: 

http://us2.php.net/header 

I hope this helps.

[Reply] [Back to Top]

© Copyright 2006-2007.  All Rights Reserved. Site hosted by Small Business Web Design
how to start a blog | parenting tips website | Passive Income | baby websites