note 54138 added to features.commandline

From: Date: Fri, 24 Jun 2005 15:07:10 +0000
Subject: note 54138 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-90904@lists.php.net to get a copy of this message
For windows clearing the screen using "system('cls');" does not work (at least for me)... Although this is not pretty it works... Simply send 24 newlines after the output (for one line of output, 23 for two, etc Here is a sample function and usage: function CLS($lines){ // $lines = number of lines of output to keep for($i=24;$i>=$lines;$i--) @$return.="\n"; return $return; } fwrite(STDOUT,"Still Processing: Total Time ".$i." Minutes so far..." . CLS(1)); Hope This Helps, Wallacebw ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54138 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54138&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54138&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54138&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54138&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54138&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54138&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54138&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90904) next »