Upload hooks used by session variables

Johannes Schlüter wrote
> > 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.


Then, would it not be possible to get a new variable in php.ini that
controls how often the status are written to those session variables.

I cannot see any reason why my endusers would have to be notified more often 
than every 2. or 3. second about the upload progress.

Writing the upload status to a session variable every 2. or 3. second should 
not put much strain on the server 

Rasmus wrote:
> 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.

For my usage (my customers usage) and probably many others, making this work in 
memcached would not solve much, mainly because the way PHP is installed.
There is a bunch of PHP inst. not allowing APC nor memcached.

Is there any good reasons not to making those upload hooks available using a 
session variable (please see my comments after Johannes Schlüter comment above)?

If the upload hooks was available using a session variable then all PHP inst. 
could use those hooks.

If not possible to enable those hooks using a session variable then is there 
any other way this could be done so the upload hooks could be used by all using 
a standard PHP inst.?

To D. Dante Lorenso:
Thanks for notifying me of:
http://digitarald.de/project/fancyupload/
But I would still like to see the upload hooks accessible from within a 
standard PHP inst., which would give me more control of the upload progress as 
well as more control in the feedback to the client, and it would be even more 
browser compatible.

So what about the PECL uploadprogress:
Same problem as when using APC, my customers PHP inst. does not have this 
installed and nothing I can do about that PHP inst.

Tore B. Krudtaa





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to