Re: printing out messages while processing a file

From: Date: Wed, 23 Jun 2004 17:14:24 +0000
Subject: Re: printing out messages while processing a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188895@lists.php.net to get a copy of this message
just use the flush() method. this will send all text that is already pinted see the documentation for more info example: print "hello"; flush(); sleep(1000); print " world"; gr GB "Merlin" <news.groups@web.de> wrote in message news:20040623063418.38454.qmail@pb1.pair.com... > Hi there, > > 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?!) > > Thank you for any help, > > Merlin

« previous php.general (#188895) next »