Carved in mystic runes upon the very living rock, the last words of Georg
Weiler of comp.lang.php make plain:
I'm using PHP on my Linux box on the command line.
It need to clear the screen, as I would do with the 'clear' command on
the bash. Is there something equivalent in PHP available?
ereg(":li#([0-9]+):", $TERMCAP, $regs);
$lines = $regs[1];
echo str_repeat("\n", $lines);
Or, for PHP3:
while ($lines--) echo "\n";
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/