|
VBSCRIPT ASP example :-
-----------------------
<%@ LANGUAGE="VBScript"%>
<%
Response.Buffer = True
%>
Start...
<%
iStart = 0
iEnd = 1000000
iInterval = 50000
for i=iStart to iEnd
if ( (i Mod iInterval) = 0 ) then
Response.Write ""
Response.Flush
end if
next
%>
PERLSCRIPT ASP example :-
--------------------------
<%@ LANGUAGE=PERLSCRIPT %>
<% $Response->{Buffer} = 0; %>
<%
$istart = 0;
$iend = 2500000;
$iintvl = 100000;
for ($i=$istart;$i<$iend;$i )
{
if ( ($i % $iintvl ) == ($iintvl-1) )
{
my $line = sprintf "counter = %d remainder = %d\n", $i, ($i % $iintvl);
$Response->write( qq() );
$Response->Flush();
}
#else
#{
# $Response->write("other\n");
#}
}
%>
|