Mailinglisten-Archive |
> endlosschleife
ich hab da mal ne frage: wie belastet eine endlosschleife den den rechner?
wenn cih folgenden script verwende.
//index.php
<?
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
$a1 = 99;
$b1 = 99;
$c1 = 99;
$a1a = $a1 + 1;
$a2a = $a2 + 1;
$b1a = $b1 + 1;
$b2a = $b1 + 1;
$c1a = $c2 + 1;
$c2a = $c2 + 1;
?>
<html>
<frameset border=1 rows="<? echo $a1."%,*"; ?>">
<frameset border=1 rows="<? echo $b1."%,*"; ?>">
<frame src="sub.php?<? echo "a1=".$a1a."&b1=".$b1a."&c1=".$c1a; ?>"
scrolling=no>
<frame src="sub.php?<? echo "a1=".$a1a."&b1=".$b1a."&c1=".$c1a; ?>"
scrolling=no>
</frameset>
<frameset border=1 cols="<? echo $c1."%,*"; ?>">
<frame src="sub.php?<? echo "a1=".$a1a."&b1=".$b1a."&c1=".$c1a; ?>"
scrolling=no>
<frame src="sub.php?<? echo "a1=".$a1a."&b1=".$b1a."&c1=".$c1a; ?>"
scrolling=no>
</frameset>
</frameset>
</html>
// sub.php
<?
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
$a1a = $a1 + 1;
$a2a = $a2 + 1;
$b1a = $b1 + 1;
$b2a = $b1 + 1;
$c1a = $c2 + 1;
$c2a = $c2 + 1;
?>
<html>
<frameset border=1 rows="<? echo $a1."%,*"; ?>">
<frameset border=1 rows="<? echo $b1."%,*"; ?>">
<frame src="sub.php?<? echo "a1=".$a1a."&b1=".$b1a."&c1=".$c1a; ?>"
scrolling=no>
<frame src="sub.php?<? echo "a1=".$a1a."&b1=".$b1a."&c1=".$c1a; ?>"
scrolling=no>
</frameset>
<frameset border=1 cols="<? echo $c1."%,*"; ?>">
<frame src="sub.php?<? echo "a1=".$a1a."&b1=".$b1a."&c1=".$c1a; ?>"
scrolling=no>
<frame src="sub.php?<? echo "a1=".$a1a."&b1=".$b1a."&c1=".$c1a; ?>"
scrolling=no>
</frameset>
</frameset>
</html>
das wird dann heftig für den, der das aufbauen muß, oder seh cih das falsch
netscape und IE machen rigendwann die fenster ohne meldung zu
was passiert beim Provider?
viele grüße
Boris
--
doobie.de
http://www.doobie.de
mailto:head_(at)_doobie.de
php::bar PHP Wiki - Listenarchive