codice:
<?php
echo "Attendere prego...";
flush();

// codice che ci mette tempo
?>