Upload Progress Meter Patch
| From: | Klaus Reimer | Date: | Fri, 05 Nov 2004 09:34:01 +0000 |
| Subject: | Upload Progress Meter Patch | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13724@lists.php.net to get a copy of this message | ||
Hello,
The website "http://pdoru.from.ro/" states that
"hopefully the patch
will be integrated into PHP". This patch adds some hooks to
main/rfc1867.c so PHP modules can implement stuff like reading the
current state of a file upload. Such an external PHP module can write
the state to disk or shared memory or whatever. A HTML popup shown to
the uploader can then view this data as a progress meter bar to the user
while he uploads large files.
This patch is extremely useful and is working very well. I'm already
using it (together with a self-written PHP module) quite successfully in
some projects where users can upload large image files.
What is the state of considering the integration of this patch into PHP?
Or is the statement on the webpage wrong and you have never heard of it?
I have attached a version of the patch for PHP 5.0.2. Even it you don't
like the way it is written it can still be used as an example to show
how it could be done.
--
Bye, K <http://www.ailis.de/~k/> (FidoNet:
2:240/2188.18)
[A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391]
(Finger k@ailis.de to get public key)