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