Hi
I originally posted this to the general list but received no response,
so I thought I might have more luck here. Apologies in advance if this
is not the appropriate place for this question.
The PHP 5.2.0 release announcement
(http://www.php.net/releases/5_2_0.php) mentions, "Hooks for tracking
file upload progress were introduced" but no further info on how these
'hooks' can be used. I even checked through the results of
get_defined_functions()
and I could find no sign of anything that fit
the bill.
Any pointers would be appreciated.
Cheers,
Stickman
They are C-level hooks. The various storage mechanisms need to add
support for them in order to expose them to userspace PHP. I added
support in pecl/apc, for example.
See:
http://progphp.com/progress.php
(pick some random file in the 200k size range)
Source at: http://progphp.com/progress.phps
Eventually we will see more extensions that manage server-side storage
with support for the hooks.
-Rasmus
Stickman wrote:
Hi
I originally posted this to the general list but received no response,
so I thought I might have more luck here. Apologies in advance if this
is not the appropriate place for this question.The PHP 5.2.0 release announcement
(http://www.php.net/releases/5_2_0.php) mentions, "Hooks for tracking
file upload progress were introduced" but no further info on how these
'hooks' can be used. I even checked through the results of
get_defined_functions()
and I could find no sign of anything that fit
the bill.Any pointers would be appreciated.
Cheers,
Stickman
Thanks for the reply.
After submitting the question I came across this page
http://blog.bitflux.ch/archive/2006/09/28/ (linked from the PHP docs of
course -- must update my local help file!) with an early patch that
makes use of these new hooks. However, I suspect we'll wait until
something more 'official' comes along (we don't currently use APC,
although I'm working on changing that).
Thanks again for your help.
Stickman
They are C-level hooks. The various storage mechanisms need to add
support for them in order to expose them to userspace PHP. I added
support in pecl/apc, for example.See:
http://progphp.com/progress.php
(pick some random file in the 200k size range)Source at: http://progphp.com/progress.phps
Eventually we will see more extensions that manage server-side storage
with support for the hooks.-Rasmus
Stickman wrote:
Hi
I originally posted this to the general list but received no response,
so I thought I might have more luck here. Apologies in advance if this
is not the appropriate place for this question.The PHP 5.2.0 release announcement
(http://www.php.net/releases/5_2_0.php) mentions, "Hooks for tracking
file upload progress were introduced" but no further info on how these
'hooks' can be used. I even checked through the results of
get_defined_functions()
and I could find no sign of anything that fit
the bill.Any pointers would be appreciated.
Cheers,
Stickman