Re: stream wrappers

From: Date: Wed, 01 Sep 2004 20:48:46 +0000
Subject: Re: stream wrappers
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-195469@lists.php.net to get a copy of this message
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...


« previous php.general (#195469) next »