doubo1883 2011-05-10 16:02
浏览 36

在后台运行PHP文件

I'm building an upload files form, it works fine but now i wanna add some extra features to it, for example, When I upload the file the page im in sends me to the PHP page, then it echo's a message saying that its done and showing a preview of the image.

What I would like to do now is to stay in the same page as the file is being uploaded, then just get a message in the same page once the file is done uploading. So in other words not be sent to the PHP page instead that info (sent via form POST) can be sent in the background (maybe using XMLHttpRequest?)

Can somebody point me to the right direction to do something like that? i would greatly appreciate it.

Thanks!

  • 写回答

1条回答 默认 最新

  • dth981485742 2011-05-10 16:06
    关注

    You'll have to use javascript and APC_UPLOAD_PROGRESS to monitor the upload. Like this: http://www.ibm.com/developerworks/library/os-php-v525/index.html

    HTH

    评论

报告相同问题?