Joel Posted May 13, 2008 Share Posted May 13, 2008 Lol in this Game we are going to make one big PHP Code, Im bored so........... Ill start: <?php Quote Link to comment Share on other sites More sharing options...
SaMz Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! ?> Confused :| Quote Link to comment Share on other sites More sharing options...
daveaite Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! require "globals.php" Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! echo "Hello World"; Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! if($_REQUEST['kyle']) { echo 'Kyle is the master!'; exit; } Quote Link to comment Share on other sites More sharing options...
-Matt- Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! <u><h1>Matt Rocks</h1></u> Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! <u><h1>Matt Rocks</h1></u> :O won't fit in return as a error. >>:D print "<u><h1>Matt Rocks</h1></u>"; Quote Link to comment Share on other sites More sharing options...
-Matt- Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! not really my page was using <?php include "globals.php"; print <<<EOF <u><h5>Matt Rocks</h1></u> <u><h4>Matt Rocks</h1></u> <u><h3>Matt Rocks</h1></u> <u><h2>Matt Rocks</h1></u> <u><h1>Matt Rocks</h1></u> <font color=red>M</font><font color=green>a</font><font color=red>t</font><font color=green>t</font> <font color=red>R</font><font color=green>o</font><font color=red>c</font><font color=green>k</font><font color=red>s</font> EOF; $h->endpage(); ?> Quote Link to comment Share on other sites More sharing options...
03laceys Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! Matt notice the print statment..... print <<<EOF Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 13, 2008 Share Posted May 13, 2008 Re: One Big Code! Matt notice the print statment..... print <<<EOF heredoc Quote Link to comment Share on other sites More sharing options...
03laceys Posted May 14, 2008 Share Posted May 14, 2008 Re: One Big Code! heredoc? Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 14, 2008 Share Posted May 14, 2008 Re: One Big Code! Take a look at this, http://www.hudzilla.org/phpwiki/index.p ... doc_syntax Quote Link to comment Share on other sites More sharing options...
General Doom Posted May 14, 2008 Share Posted May 14, 2008 Re: One Big Code! echo 'lol fail'; Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted May 14, 2008 Share Posted May 14, 2008 Re: One Big Code! $last_poster = "General Doom"; if($last_poster == "General Doom") { echo 'General Doom posted above this :D'; } unset($last_poster); Quote Link to comment Share on other sites More sharing options...
Klikoka Posted May 15, 2008 Share Posted May 15, 2008 Re: One Big Code! <script language="JavaScript"> var r_text = new Array (); r_text[0] = "CE is great"; r_text[1] = "Noob attack"; r_text[2] = "Basic Javascripting"; var i = Math.round(2*Math.random()); document.write(r_text[i]); </script> Quote Link to comment Share on other sites More sharing options...
parelem Posted May 16, 2008 Share Posted May 16, 2008 Re: One Big Code! second post was: ?> Confused :| no one ever opened php again, you all fail. Quote Link to comment Share on other sites More sharing options...
03laceys Posted May 16, 2008 Share Posted May 16, 2008 Re: One Big Code! <?php Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 16, 2008 Share Posted May 16, 2008 Re: One Big Code! $server = 'localhost'; $username = 'mysql_user'; $password = 'password'; $database = 'mysql_db'; $theError = 'The database connection could not be established.'; mysql_connect("$server", "$username", "$password") or die ($theError); mysql_select_db("$database") or die ($theError); Quote Link to comment Share on other sites More sharing options...
Spudinski Posted May 18, 2008 Share Posted May 18, 2008 Re: One Big Code! $default = 'home'; $request = empty($_SERVER['QUERY_STRING']) ? $default : (chdir('html') && !file_exists($_SERVER['QUERY_STRING']) ? $default : $_SERVER['QUERY_STRING']); Quote Link to comment Share on other sites More sharing options...
Halo Posted June 13, 2008 Share Posted June 13, 2008 Re: One Big Code! $criminalexistence=mysql_query("SELECT * FROM swearword WHERE id='{$_POST['swear']}'"); Quote Link to comment Share on other sites More sharing options...
Akash Posted June 16, 2008 Share Posted June 16, 2008 Re: One Big Code! while($row = mysql_fetch_row($criminalexistence)) { echo'You swore...:O...' .$row['id']. ''; } if($row['id'] == stupid) { die("You're the stupid one n00b"); } else { die("You're still stupid"); } $h->endpage(); ?> Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted June 17, 2008 Share Posted June 17, 2008 Re: One Big Code! <?php die('game over...'); exit; ?> Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted June 17, 2008 Share Posted June 17, 2008 Re: One Big Code! <?php echo 'Akash went wrong he would of got a big fat error!'; Let me show you where: if($row['id'] == stupid) [php] Now insert that into an actual php page and you will get a error, but by doing this: [php] if($row['id'] == "stupid") There will be no more error :) Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted June 17, 2008 Share Posted June 17, 2008 Re: One Big Code! <? echo 'lets start again'; Quote Link to comment Share on other sites More sharing options...
Spudinski Posted June 18, 2008 Share Posted June 18, 2008 Re: One Big Code! echo 'Spudinski agrees...'; exit; // this ends the script ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.