I posted this on another site, didn't get any replies and realized I should have just poested it here to start with. If you've already seen this question, I'm sorry.
In one part of my script, I take an uploaded image and convert it to another format. I'm doing this with this:
exec("convert -verbose " . $_FILES['imgfile']['tmp_name'] . " -resize 200x300 /tmp/" . $thumbname, $arrayOutput);
Now since some of the images can be really big and this conversion sometimes takes a while, I'd like to send some info to the browser to let the user know the image is being processed.
In other parts of my script, I just call ob_flush and flush to send the output to the browser. However until the whole cmd is finished, I can't seem to access $arrayOutput to print out the progress.
Is there some way I can do this? I'd even settle for just sending to the browser some generic "Converting ..." and follow it with more "." every second or two.
About 90% of the uploaded images multipage tiffs. Therefore I can't use the gd functions, which would make this a lot simpler.
Thanks