<!-- m --><a class="postlink" href="http://www.freetemplates.co.uk/category.php?category=5&menus=1">http://www.freetemplates.co.uk/category ... =5&menus=1</a><!-- m -->
Where can I get a Download system like this for free?Have you tried <!-- m --><a class="postlink" href="http://php.resourceindex.com/?what">http://php.resourceindex.com/?what</a><!-- m --> are you talking about? a Download system? all they did was made a Download .php file and depending on what ID was sent it then searched the database and than sent the correct headers to IE to Download .
what is hard about that? Originally posted by scoutt
what are you talking about?
It just looks like pafileDB (but better) or myFiles. That's all.I do the samething on my site. it is very easy to make.Could you show me how to do this?well let say you have a link that says, Download .php?id=3
so in your Download .php page you have
//connect to database
// query database to get file tht matches id
// only thing in the database is the file name.
// once you have the file name you make a variable that
//shows you the path plus the file name
$downlaod_file = "/path/to/file/."$file_name_from_db;
// then once you have that you send the header out to the browser.
header ("Location: $downlaod_file");
// and there you have it. one way to get the job done.
I left off the connection to the database as I figured you would now how to do this. Thanks, scoutt. I'll give it a try then let you know. How about the rating though?that has to be done in a different file. the downlaod file can only have that code in it becasue if you let the user see the page or if you echo out anything in that file you will get errors and the user can see where your path is to your file.
look at this forum to give you an idea how to do a rating system. look at the botom of this page. th edrop down box shows you a list and that list is assocciated to this thread. so when they choose it goes into the database and then you have a script that tallies the totals and does an average.
Where can I get a Download system like this for free?Have you tried <!-- m --><a class="postlink" href="http://php.resourceindex.com/?what">http://php.resourceindex.com/?what</a><!-- m --> are you talking about? a Download system? all they did was made a Download .php file and depending on what ID was sent it then searched the database and than sent the correct headers to IE to Download .
what is hard about that? Originally posted by scoutt
what are you talking about?
It just looks like pafileDB (but better) or myFiles. That's all.I do the samething on my site. it is very easy to make.Could you show me how to do this?well let say you have a link that says, Download .php?id=3
so in your Download .php page you have
//connect to database
// query database to get file tht matches id
// only thing in the database is the file name.
// once you have the file name you make a variable that
//shows you the path plus the file name
$downlaod_file = "/path/to/file/."$file_name_from_db;
// then once you have that you send the header out to the browser.
header ("Location: $downlaod_file");
// and there you have it. one way to get the job done.
I left off the connection to the database as I figured you would now how to do this. Thanks, scoutt. I'll give it a try then let you know. How about the rating though?that has to be done in a different file. the downlaod file can only have that code in it becasue if you let the user see the page or if you echo out anything in that file you will get errors and the user can see where your path is to your file.
look at this forum to give you an idea how to do a rating system. look at the botom of this page. th edrop down box shows you a list and that list is assocciated to this thread. so when they choose it goes into the database and then you have a script that tallies the totals and does an average.