Re: Upload progress

From: Date: Thu, 10 Aug 2006 04:24:10 +0000
Subject: Re: Upload progress
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-25275@lists.php.net to get a copy of this message
Fair enough. I was under the (now obviously wrong) impression that setting post_max_size to 0 wouldn't let me get to the post data. But that's still setting you dependent on it being Apache. I would need (if I were to add this feature to any of my software) to write this in code that can run on IIS or as CGI (because it is intended for end-users.) Very interesting. Thank you, -[Unknown] -------- Original Message --------
If you set post_max_size to 0, you can parse the post data yourself from php://input. Combine that with the Content-Length value from apache_request_headers() and you have everything you need for a progress monitor. I don't mean to detract from the hopefully soon-to-come support in the core, just to point out that it's already possible without a patch. I have some code using this method in case anyone's interested, email me off-list. Arpad


« previous php.internals (#25275) next »