look at the output buffering. You'll need to have this active to do what you want. ob_start() echo("fred"); if (ok_to_send()) { ob_end_clean(); } else { ob_end_flush(); } I ought to say at this point that I've never had to use these functions, but if they don't do what you want then there's a bug that needs reporting. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -----Original Message----- > From: Jeremy Morano [mailto:[EMAIL PROTECTED]] > Sent: 19 July 2001 17:11 > To: [EMAIL PROTECTED] > Subject: screen2 > > > Can anybody tell me how to refresh or clear a screen in php > code and if not, > please tell me,, "It cannot be done." > -- 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]