Re: [PHP] stream wrappers

2004-09-01 Thread jarell
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

Re: [PHP] stream wrappers

2004-09-01 Thread John Holmes
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

Re: [PHP] stream wrappers

2004-09-01 Thread jarell
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"); $

Re: [PHP] stream wrappers

2004-09-01 Thread John Holmes
- 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

Re: [PHP] stream wrappers

2004-08-31 Thread John Holmes
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

[PHP] stream wrappers

2004-08-31 Thread jarell
Hi, 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? Thanks Jar