hallo all, im using exec() function in my php program, but it takes time to get the output in my page. After I press submit button and before running exec() function, I wrote please wait message. The problem is this message doesnt coming before the command complete executed . Here also Im using flush() and sleep() functions to get output progress line by line. I need help to display wait message immediately after i press submit button. Thanks in advance
You may be better running the script in the background and using a meta refresh tag to reload the page every 20 seconds to see if the script is completed.
I get round these issues by sending a complete header and top part of the page with an x/y positioned please wait (somewhere in the midle. This is obliterated by a white background when sending the rest of the page once results are avilable. Expat
I was looking in to something similar today ... Here's where I started - ob_flush() maybe? http://www.google.com/search?&q=php+ob_flush
well as the site is on a fast dedicated you may or may not see it depending on db load. http://www.departures-arrivals.com/europe-who-flies-where.htm but view source should show it I don't use any flush or so just a large enough block that will be spewed out to the (IE) client. reg expat PS works on IE the google spyware (Firefox) is fast enough to not need it