Joel Posted May 13, 2008 Posted May 13, 2008 Lol in this Game we are going to make one big PHP Code, Im bored so........... Ill start: <?php Quote
Haunted Dawg Posted May 13, 2008 Posted May 13, 2008 Re: One Big Code! if($_REQUEST['kyle']) { echo 'Kyle is the master!'; exit; } Quote
Guest Anonymous Posted May 13, 2008 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
-Matt- Posted May 13, 2008 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
03laceys Posted May 13, 2008 Posted May 13, 2008 Re: One Big Code! Matt notice the print statment..... print <<<EOF Quote
Guest Anonymous Posted May 13, 2008 Posted May 13, 2008 Re: One Big Code! Matt notice the print statment..... print <<<EOF heredoc Quote
Guest Anonymous Posted May 14, 2008 Posted May 14, 2008 Re: One Big Code! Take a look at this, http://www.hudzilla.org/phpwiki/index.p ... doc_syntax Quote
Haunted Dawg Posted May 14, 2008 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
Klikoka Posted May 15, 2008 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
parelem Posted May 16, 2008 Posted May 16, 2008 Re: One Big Code! second post was: ?> Confused :| no one ever opened php again, you all fail. Quote
Guest Anonymous Posted May 16, 2008 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
Spudinski Posted May 18, 2008 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
Halo Posted June 13, 2008 Posted June 13, 2008 Re: One Big Code! $criminalexistence=mysql_query("SELECT * FROM swearword WHERE id='{$_POST['swear']}'"); Quote
Akash Posted June 16, 2008 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
Isomerizer Posted June 17, 2008 Posted June 17, 2008 Re: One Big Code! <?php die('game over...'); exit; ?> Quote
Haunted Dawg Posted June 17, 2008 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
Guest Anonymous Posted June 17, 2008 Posted June 17, 2008 Re: One Big Code! <? echo 'lets start again'; Quote
Spudinski Posted June 18, 2008 Posted June 18, 2008 Re: One Big Code! echo 'Spudinski agrees...'; exit; // this ends the script ?> Quote
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.