Johannes Schlüter wrote:
Hi,
On Wed, 2008-07-30 at 13:46 -0700, Tore B. Krudtaa wrote:
As most of you probably know Rasmus Lerdorf made som upload hooks
available in PHP 5.2 some long time back.
This was great news for those that wanted more control of uploads
and/or wanted to give "real time" feedback to client about upload
progress, and had APC installed as well.
Most PHP installations does not have APC installed, so therefore the
upload hooks are not available.
I would like to be able to use the upload hooks without installing
the APC.
There's also a package called uploadprogress or something like that in
PECL.
I would eventually like to be able to use those upload hooks using
session variables.
I think that's not possible in a good way as the uploading process would
have to open and parse the session file, update the status, serialize it
and store it again to disk everytime the status changes (aka. every few
bytes received), APC does that using shared memory, uploadprogress using
special files in /tmp, I think.
The real solution here would be to have any extension that handles any
sort of storage implement these hooks. The memcached extension, would
be a good start.
-Rasmus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php