Page 1 of 1

comunication browser-server server-browser "inlive"

Posted: Mon Nov 13, 2006 7:58 pm
by visonardo
i has been see the classic "preloading bar". I want to know if i can do some thus with php and javascript only. understand? for example when an user upload something to the server the classic preloading bar that is made with javascript and cgi generally but i would like with php. can I (and how) do it?

Posted: Mon Nov 13, 2006 9:09 pm
by aaronhall
PHP doesn't get enough information from the post request to be able to calculate it. Anyway, I used Google.com, an up and coming data mining service, and found this little hack. Uses Ajax to call a PHP script that reports the size of the file being uploaded in the temp directory.

Posted: Tue Nov 14, 2006 11:16 am
by visonardo
Thank aaronhall :)