Consider my (simplified) code below:
With my old ISP it used to display "Archiving database images ..." then paused for a while (30 secs to a few minutes) then displayed complete".
With my new ISP it pauses for ages before any output but doesn't go anywhere
Replacing the system() line with a sleep(5) shows me that it is waiting until the whole process is complete before outputting ... but for some reason I think this is going wrong as IE just keeps trying to open page ... but never does.
How can I get it back to how it was?
Also - anyway I can improve the system() line so that it is verbose to PHP so Ican see hwt's happenning? (it's for a site backup, so I need to ensure admin know that it is processing and hasn;t crashed)
Many thanks
set_time_limit(0); // As tar/gzip takes a while
echo "<P>Archiving database images ... ";
system ("tar cvf - $imagedir"."/*.* | gzip -r9 > $backupfilename".".tar.gz");
echo "complete\n";