what do you mean exactly by
"counting in real time char ..." ?
If you want to know (or limit) the number
of char composing an HTML page you're
creating dynamicly, you can output
everything in a string, and then
use the strlen() function to know the size
of the output.
Instead of using
print "Hello World !<BR>";
print "<HR>";
print "....";
using :
$buffer = "Hello World !<BR>";
$buffer .= "<HR>";
$buffer .= "....";
$nb_char = strlen($buffer);
print $buffer;