PHP Ajax Shell Exec()进度

What I'm trying to do is quite simple.

echo "doing a...."
Start progress bar
then exec("commandA")
stop progress bar

echo "doing b...."
Start progress bar
then exec("commandA")
stop progress bar

echo "doing c...."
Start progress bar
then exec("commandC")
stop progress bar

etc

The progress bar doesn't need to be accurate, more of a comfort to show something is happening.

I've read it can be done using jquery and php/ajax.. but I've no idea how. Anyone got a simple example I can try a work with ?

Thanks :)

查看全部
weixin_33739523
weixin_33739523
2012/11/06 12:44
  • progress
  • php
  • ajax
  • exec
  • 点赞
  • 收藏
  • 回答
    私信

1个回复