Page 1 of 1
Infinite Loop
Posted: Wed Aug 28, 2002 8:54 am
by Edg
Who can make the most resource tieing infinite loop? The idea is to incroprate to most confusing set of resources into the loop without letting it finish.
Simple Start :
Code: Select all
<?php
for ($i=1, $i<$i+1, $i++) {
print ("No, it's a loop!");
}
?>
I'm sure someone can do something stupid, annoying and higly resourseful
edg
Posted: Wed Aug 28, 2002 10:17 am
by hob_goblin
Code: Select all
<?php
for ($i=1, $i<$i+1, $i++) {
$anarrayї] = "some spam?";
print ("No, it's a loop!");
foreach($anarray as $key => $value){
echo $key." "." "." "." "." ".$value; }
}
?>
just made an array to add on to the clutter
Posted: Wed Aug 28, 2002 10:27 am
by volka
Code: Select all
<?php
for ($i=1; $i<$i+1; $i++) {
$anarrayї] = "some spam?";
foreach($anarray as $entry)
$anarrayї] = md5($entry);
print ("No, it's a loop!");
foreach($anarray as $key => $value){
echo $key." "." "." "." "." ".$value; }
}
?>
if we are strict, the contest has been over before it begun
for ($i=1, $i<$i+1, $i++)
must be
or you get "parse error, unexpected ')', expecting ';' in xyz.php on line 2"
Posted: Wed Aug 28, 2002 12:58 pm
by edg
Sorry, my bad. First serve was a fault, second serve?
edg
Posted: Wed Aug 28, 2002 5:47 pm
by hob_goblin
Code: Select all
<?php
for ($i=1; $i<$i+1; $i++) {
$anarrayї] = "some spam?";
foreach($anarray as $entry)
$anarrayї] = md5($entry);
print ("No, it's a loop!");
foreach($anarray as $key => $value){
echo $key." "." "." "." "." ".$value; }
set_time_limit ("60"); /* UH OH, Let's start the counter over! */
}
?>
now it won't fux0r up at 30 seconds, i think.
Posted: Wed Aug 28, 2002 6:56 pm
by volka
Code: Select all
<?php
for ($i=1; $i<$i+1; $i++) {
$anarrayї] = "some spam?";
foreach($anarray as $entry)
$anarrayї] = md5($entry);
print ("No, it's a loop!");
print('<table>');
foreach($anarray as $key => $value){
echo '<tr><td>'.$key."</td> "." "." "." "." <td>".$value."</td></tr>"; }
print('</table>');
set_time_limit ("60"); /* UH OH, Let's start the counter over! */
}
?>
let the browser burn, too.
