Re: printing out messages while processing a file

From: Date: Wed, 23 Jun 2004 06:41:18 +0000
Subject: Re: printing out messages while processing a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188852@lists.php.net to get a copy of this message
On Wed, 23 Jun 2004 08:34:17 +0200, Merlin <news.groups@web.de> wrote: > > I am writing a backup_restore file which creates directories and picture files > with different resolutions out of an original file. > > After each process completes I would like to print out a [ok] message, but > unfortunatelly it prints those msg out only when the script is completely > through and done. > > How can I echo out status messages? > > The script is run by console php. ( I also noticed that \n or <br> does not work > for the console?!) $stdout = fopen('php://stdout', 'w'); fwrite($stdout, "status message goes here\r\n"); Why would you want to print <br> tags in a console? The console isn't HTML aware. You probably just want \r\n as line delimiters. -- Greg Donald http://destiney.com/

« previous php.general (#188852) next »