I have a site for filehosting. In the admin manager, I made a function when a user is deleted, the users uploaded data is compressed, and moved to another server.
The problem is when the admin clicks to delete a user, I would like a message saying "please wait while files are backed up.", but the backup function runs before the header, so you can't write output to the browser until the function is complete. So basicly the admin sees a blank page while the files are being backed up.
The setup is like this:
<?php
if(isset($_POST['submit']))
backupUser()
?>
<html>
<head><title></title></head>
<body>
<backup form>
</body>
</html>