| | |
Create a PHP Script Game
![]() |
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:
The first line:
PHP Syntax (Toggle Plain Text)
session_start();
php Syntax (Toggle Plain Text)
exit("I'm mean.");
Last edited by MosaicFuneral; Jul 9th, 2009 at 3:55 am.
"Jedenfalls bin ich überzeugt, daß der Alte nicht würfelt."
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
•
•
•
•
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 Syntax (Toggle Plain Text)
<?php session_start(); $slugtalk = "I may not move fast but I can still slug you." ?>
If I helped you I would appreciate it if you would give me some reputation.
read my actionscript to english blog
Currently developing what should be social network 2.0 offline.
read my actionscript to english blog
Currently developing what should be social network 2.0 offline.
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:
[code=PHP]
<?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.
Not that they do much.
php Syntax (Toggle Plain Text)
<?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"; } }
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
php Syntax (Toggle Plain Text)
<?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 Syntax (Toggle Plain Text)
<?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 Syntax (Toggle Plain Text)
<?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)."'");
Last edited by cwarn23; Sep 27th, 2009 at 7:24 pm.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Alright:
PHP Syntax (Toggle Plain Text)
<?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 Syntax (Toggle Plain Text)
<?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>'; }
Last edited by cwarn23; Sep 27th, 2009 at 8:39 pm.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
![]() |
Similar Threads
- Website Account Creation to SQL game database (Game Development)
- 'Tell a friend' form for my PHP script (Web Development Job Offers)
- images thumbnails view php script (PHP)
- create a php link by creating by making directory in unix (PHP)
- cPanel: email account creation. I need help making a PHP script. (PHP)
- php script (PHP)
- question about connecting odbc to sql through php script (PHP)
Other Threads in the Posting Games Forum
- Previous Thread: designer breeds
- Next Thread: The Forbidden: 'yes', 'no' & 'sometimes' game
| Thread Tools | Search this Thread |
amazon apple beijing children complaint console consoles development dlc ebook election financialcrisis game games gaming grandtheftauto gta gtaiv halo3 hardware internet kids kindle linux madden merger microsoft netbook news nintendo obama olympics os parentalcontrol parenting planning playstation population ps3 ps4 research sims software softwaredevelopment sony stocks study survey tablet thelostanddamned usarmy videogames wii worldofwarcraft wow xbox xbox360






