Hello Darren, ------ manual cut -------- The system() call also tries to automatically flush the web server's output buffer after each line of output if PHP is running as a server module. ------ manual cut --------
Hehe. The problem is not in flushing ability of system() foo, but flush() itself is not working :( I've tried to install PHP as a module (as written above), cgi, compiled with apache. But nothing worked. DG> flush() will just empty the contents of the output buffer when it's called. DG> You should do this after you output the command, yes, or the user will have DG> to wait until the rest of the page is loaded. But this won't let you see DG> the output as it is generated by the system() function. DG> You may want to try popen instead. This gives you a pipe to the process, so DG> you _should_ be able to read in lines of the output and display them as they DG> appear, whilst using flush() (although I have never tried this myself so I DG> can not vouch for it). ------------------------------------------------ Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]