Thanks, that's exactly what I was looking for. That helps a ton! Nathan
On Tue, Apr 22, 2008 at 11:01 AM, Wade Preston Shearer < [EMAIL PROTECTED]> wrote: > What exactly are you trying to do? Writing a download script and crafting > URLs that will feed that script? > > So, something like this? > > http://example.com/download/234234 > > > …with "234234" being the ID of the file to download in the database? > > > If yes, then I would recommend this: > > 1. install mod_rewrite on your server > > 2. enable .htaccess override in httpd.conf > > 3. create an .htaccess file in your web root > > 4. add rewrite rules in in .htaccess that translate " > http://example.com/download/234234" into " > http://example.com/download.php?id=234234" > > 5. create a script called "download.php" and put it in web root > > 6. in download.php, pull the ID of the requested download out of the URL > with $_GET['id'] and then query the database for the file name and path > > 7. proceed with your download script to pass the appropriate headers to > the browser so that the file downloads > > _______________________________________________ > > UPHPU mailing list > [email protected] > http://uphpu.org/mailman/listinfo/uphpu > IRC: #uphpu on irc.freenode.net > -- Nathan Lane Home, http://www.nathandelane.com Blog, http://nathandelane.blogspot.com
_______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
