Re: [PHP4BETA] Tracking file upload
| From: | Shantul Nigam | Date: | Fri, 10 Dec 1999 18:01:33 +0000 |
| Subject: | Re: [PHP4BETA] Tracking file upload | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7773@lists.php.net to get a copy of this message | ||
Since the upload is done mostly by HTML, I am not sure how much info you could
actually trap.
Closest I have been able to get to is using the flush() function during my
routine. What I did is called a function right at the start of the response
page. Then, in the function, I first print a message to the page and call
flush();. I then copy to the right subdirectory with the extension of ".tmp".
Again, print a message and do a flush. Finally, I unlink and rename the file and
start working with it. While I am working with it, I keep doing the same thing,
print a line and do a flush... Eventually, I finish working with the file and
let them go to wherever I need them to be.....
One note.... Flush works on a line by line basis..... As one person described
it, I have a vertical scroll bar.... :)
Shantul Nigam.
Andrei Zmievski wrote:
> I was looking at rfc1867.c and wondering if it'd be possible to register
> a callback that would be called as the file upload from the form is
> progressing. This then would allow to call user defined PHP function
> with upload progress results.
>
> -Andrei
>
> The 3 great virtues of a programmer:
> Laziness, Impatience, and Hubris.
> --Larry Wall
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net