Here's how this one works. I'll start by posting one line of PHP script. The next person to post will add another line and copy the script into their post. You will simply add a line of PHP code to the script everyone wrote above you. Also don't forget to use CODE tags and try to write your line based on the code in the post above you.
The first line:

session_start();

Recommended Answers

All 9 Replies

exit("I'm mean.");

:P

Here's how this one works. I'll start by posting one line of PHP script. The next person to post will add another line and copy the script into their post. You will simply add a line of PHP code to the script everyone wrote above you. Also don't forget to use CODE tags and try to write your line based on the code in the post above you.
The first line:

<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you." ?>

is that how the game goes?

Sure. Everyone just adds a line...but after the second post, there really wasn't anything that could be done....but we can ignore that post:

<?php session_start(); $slugtalk = "I may not move fast but I can still slug you."; $slugtalk += " I'm a slug...\n"; ?>[code=PHP]
<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk += " I'm a slug...\n";
?>

I have a few lines.

<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk.= " I'm a slug...\n";
for ($i=0;$i<6;$i++) {
    if ($i==round($i/2)) {
        $slugtalk.=$slugtalk;
        } else {
        $slugtalk.="Hey, how about me!\n";
        $slugtalk.='Testing';
        for ($v=1;$v<=$i;$v++) {
            $slugtalk.=' '.$v;
            }
        $slugtalk.=".\n";
        }
    }

Not that they do much.

<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk.= " I'm a slug...\n";
for ($i=0;$i<6;$i++) {
    if ($i==round($i/2)) {
        $slugtalk.=$slugtalk;
        } else {
        $slugtalk.="Hey, how about me!\n";
        $slugtalk.='Testing';
        for ($v=1;$v<=$i;$v++) {
            $slugtalk.=' '.$v;
            }
        $slugtalk.=".\n";
        }
    }

$DB = mysql_connect("localhost", "user", "pass") or die("Slug Squashed!");
mysql_select_db("someDB") or die("The slug was too slow!");
mysql_query("SELECT id WHERE slug='{$slugtalk}'");
<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk.= " I'm a slug...\n";
for ($i=0;$i<6;$i++) {
    if ($i==round($i/2)) {
        $slugtalk.=$slugtalk;
        } else {
        $slugtalk.="Hey, how about me!\n";
        $slugtalk.='Testing';
        for ($v=1;$v<=$i;$v++) {
            $slugtalk.=' '.$v;
            }
        $slugtalk.=".\n";
        }
    }

$DB = mysql_connect("localhost", "user", "pass") or die("Slug Squashed!");
mysql_select_db("someDB") or die("The slug was too slow!");
mysql_query("SELECT id WHERE slug='{$slugtalk}'");

OOPS - Fatal error, better fix it:

<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk.= " I'm a slug...\n";
for ($i=0;$i<6;$i++) {
    if ($i==round($i/2)) {
        $slugtalk.=$slugtalk;
        } else {
        $slugtalk.="Hey, how about me!\n";
        $slugtalk.='Testing';
        for ($v=1;$v<=$i;$v++) {
            $slugtalk.=' '.$v;
            }
        $slugtalk.=".\n";
        }
    }

$DB = mysql_connect("localhost", "user", "pass") or die("Slug Squashed!");
mysql_select_db("someDB") or die("The slug was too slow!");
mysql_query("SELECT id FROM `table` WHERE slug='".mysql_real_escape_string($slugtalk)."'");

Alright:

<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk.= " I'm a slug...\n";
for ($i=0;$i<6;$i++) {
    if ($i==round($i/2)) {
        $slugtalk.=$slugtalk;
        } else {
        $slugtalk.="Hey, how about me!\n";
        $slugtalk.='Testing';
        for ($v=1;$v<=$i;$v++) {
            $slugtalk.=' '.$v;
            }
        $slugtalk.=".\n";
        }
    }

$DB = mysql_connect("localhost", "user", "pass") or die("Slug Squashed!");
mysql_select_db("someDB") or die("The slug was too slow!");
$res = mysql_query("SELECT id FROM `table` WHERE slug='".mysql_real_escape_string($slugtalk)."'");
$results = new array();
while($arr = mysql_fetch_array($res))
{
  $results[] = (int)$arr['id']+count($results);
}

Got a few more lines

<?php
session_start();
$slugtalk = "I may not move fast but I can still slug you.";
$slugtalk.= " I'm a slug...\n";
for ($i=0;$i<6;$i++) {
    if ($i==round($i/2)) {
        $slugtalk.=$slugtalk;
        } else {
        $slugtalk.="Hey, how about me!\n";
        $slugtalk.='Testing';
        for ($v=1;$v<=$i;$v++) {
            $slugtalk.=' '.$v;
            }
        $slugtalk.=".\n";
        }
    }

$DB = mysql_connect("localhost", "user", "pass") or die("Slug Squashed!");
mysql_select_db("someDB") or die("The slug was too slow!");
$res = mysql_query("SELECT id FROM `table` WHERE slug='".mysql_real_escape_string($slugtalk)."'");
$results = new array();
while($arr = mysql_fetch_array($res))
{
  $results[] = (int)$arr['id']+count($results);
  $results[((int)$arr['id']+count($results))]=true;
}
if (isset($results[$_GET['i']])) {
die('You won. <a href="index.php">Click here</a> to play again.');
} else if (isset($_GET['i']) && !empty($_GET['i'])) {
die('You lost mate. <a href="index.php">Click here</a> to loose again.');
} else {
echo "\n<p>".'<form method="get">Enter a number in the box below<br>';
echo '<input type="text" name="i">';
echo '<input type="submit" value="Guess the number"></form>';
}

good script :D

<?php
if(isset($_GET['submit']))
echo "delete in progress";
<progress>1+1</progress>
mysql_query (Delete user, pass, email) Values ($user, $pass, $email)");
echo "delete are completed";
}else{
echo "Problems with deleting!";
?>
<?php
<title>LOL forums</title>
<center><br>this is league of legends forum</br></center>
<select>
<option <type='forumas online' value='forumas online'
<option <type='forumas deactivate' value='deactivate'
</select>
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.