Limited access for downlaod script, need some help.
Posted: Thu Jun 20, 2002 3:37 pm
Hey,
Im gonna be making a downlaod script that will allow only certian sites to download my files. So what i want to do is, store the websites urls in a mysql database, or text file, so i woudl have it like this:
http://www.pidn.net
http://www.devnetwork.net
would be in the file and only those two sites would be bale to download files from the server. So the sites will call my php script to download files form my server. What i need to know how to do is, how to compare the files from the file. Would i have php read the text file, dumb it into a array, and have the script see if the reffering site is in the array or not?
Thanks,
Limb
Im gonna be making a downlaod script that will allow only certian sites to download my files. So what i want to do is, store the websites urls in a mysql database, or text file, so i woudl have it like this:
http://www.pidn.net
http://www.devnetwork.net
would be in the file and only those two sites would be bale to download files from the server. So the sites will call my php script to download files form my server. What i need to know how to do is, how to compare the files from the file. Would i have php read the text file, dumb it into a array, and have the script see if the reffering site is in the array or not?
Thanks,
Limb