php3-list | 199908
Date: 08/08/99
- Next message: Gerardo Lijs - Fibertel: "[PHP3] MySQL Random"
- Previous message: thejedi.com: "[PHP3] copy & save remote file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm attempting to set up a credit-based fileserver-type website. A user
has X bytes of credit in his account and when he downloads a file the
filesize is subtracted from his credits. The feature I'm attempting to
implement is detecting the user either cancelling the download or perhaps
getitng disconnected from his ISP.
Currently I am serving the files by using the Header() and readfile()
functions (so that the true location of the file is never known to the user-
otherwise he could get the file without 'paying' for it with credits). In
this scenario I cannot use the connection_aborted() function can I? Can I
use the return value of readfile() somehow?
If I use the EMBED html tag, then I have no control over whether the
download is completed. And I obviously cannot have a simple <a
href="filename"> tag because then the user can get the file without
deducting from his credits.
Is this even a possibility? Thanks for any pointers...
-------
Alex MacFarlane, Systems Administrator
- nash <email protected> -
Hosting Trends | www.hostingtrends.com | 1-877-WEHOST-1
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Gerardo Lijs - Fibertel: "[PHP3] MySQL Random"
- Previous message: thejedi.com: "[PHP3] copy & save remote file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

