NOT a good idea

i was bored, so i put this code on my server:


<?php
echo "100000000000000000000 <br>";

for ($i = 1; $i < 100; $i++) {
	for ($j = 1; $j < 100; $j++) {
		for ($k = 1; $k < 100; $k++) {
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
			echo '000000000000000000000 <br>';
		}
		echo '000000000000000000000 <br>';
	}
	echo '000000000000000000000 <br>';
}

?>

not a good idea… lol i think i ate up all of my bandwith it just sat there and printed zeros for like 10 minutes lol :stuck_out_tongue:

anyone care to figure out how many zeros that figures out to? lol :stuck_out_tongue:

aight, it’s this kind of thing that can really do bad things for bandwith :wink:

I once mis-coded a “for” which included a different template, and it made that website load all templates (so you had a template, inside that one anotherone, and anotherone, …) you had 25 lay-outs, and than the text…

Problem was i only found out 11 hours after i put it up, the site had had +/- 500 unique hits by then…

4 gig traffic blown on 1 night :autch:

try this:


for( ; ; ){
echo 0;
}

:beam:

you guys are f’ing crazy :smiley:

I had a friend mess up a for loop with a mail() he received over 10,000 emails in the course of a day.

*Originally posted by kill.robot.kill *
**I had a friend mess up a for loop with a mail() he received over 10,000 emails in the course of a day. **

hahahaha :smiley:

the icing on the cake would be if you did that on a home server and got your net connection suspended for spamming :stuck_out_tongue: