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 when the stream gets written to the output buffer? Maybe with Apache?


Jarell

John Holmes wrote:


I don't really understand why you're using a custom stream here or what you're hoping to accomplish. you're incrementing the download count, but not really checking it for any limit. It wouldn't really make sense to put the checks in the stream. Check them outside of it and either show an error message in HTML or send the file headers and the data with readfile() and the normal file:// stream.


---John Holmes...


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to