I do check it for a limit, there's lots of other code that doesn't
really involve checking to see whether a file was completely downloaded
by a client. This doesn't too because the $location in one of the funcs.
would be empty, but I think the main part is there.
Is there some way to control whe
From: "jarell" <[EMAIL PROTECTED]>
Here's my db_update function then your code with some mods:
function update_db($location) {
require_once('/usr/home/doc/mysqlconnect.php');
$query = "SELECT dl_count FROM downloads WHERE filelocation =
'$location'";
$result = mysql_query($query);
$dl_count = mys
Here's my db_update function then your code with some mods:
function update_db($location) {
require_once('/usr/home/doc/mysqlconnect.php');
$query = "SELECT dl_count FROM downloads WHERE filelocation = '$location'";
$result = mysql_query($query);
$dl_count = mysql_result($result, 0, "dl_count");
$
- Original Message -
From: "jarell" <[EMAIL PROTECTED]>
To: "John Holmes" <[EMAIL PROTECTED]>
Sent: Wednesday, September 01, 2004 2:05 PM
Subject: Re: [PHP] stream wrappers
Does the stream_open function in your example actually check if the file
has
jarell wrote:
I'm trying to write a stream wrapper that will be used to let users
download a file only once.
I'm confused as to what function definined on the php definition page
for stream_wrapper_register I need to use. I'm guessing that stream_eof
will be important.
What about stream_close?
Y
5 matches
Mail list logo