PHP cannot work in real time, all the php is executed before the page is created and displayed, so, the only way round this would be to keep refreshing the page and somehow keeping the upload going while getting the file progress at the same time, people try to do this all the time, hundreds of previous posts on this, in my opinion go with the above or use javascript!
Regards,
Jack.