creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Strangeo Forum
old
Coder's Game - PHP   
K@nilb

K@nilb



  6/15/2013

This is the same as the game posted by Papriko, but using PHP.
You just have to make the script more complex than it was before.

Eg. Post 1
<?php
echo "Hello";
?>


Eg. Post 2
<?php
$hello = "Hello";
echo $hello;
?>


This is more complex as it uses a variable for the text.

I'll start:
<?php
echo "Hello World";
?>

 
eprillios
Geek Ettin

eprillios


 visit eprillios's website: CreaturesCommunity.net
  6/15/2013

<?php
$message = "Hello World";
echo strrev($message);
?>




Geek Ettin's Lab (New!)
Bill Gates: "Be nice to nerds. Chances are you'll end up working for one."


 
kezune
Air Guitarist

kezune


 visit kezune's website: Designer Genes
  6/15/2013

<?php

$x = 2-1;

$n = $x;

if($n != 1) {
$message = "Hello World";
echo strrev($message);
}
else {
$message = "Hello World";
echo strrev($message);
}
?>


Updated Rehosting Policy[/title]
 
Rascii
Caves Dweller

Rascii

Administrator


 visit Rascii's website: Creatures Caves
  6/16/2013

<?php
$x = 2-1;
$n = $x;
$location1 = "USA";

if($n != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
$message = "Hello $location1";
echo $message;
}
?>


- Rascii
 
K@nilb

K@nilb



  6/16/2013

<?php
$x = 2-1;
$n = $x;
$z = $n+$x;
$location1 = "USA";

if($z != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
$message = "Hello $location1";
echo $message;
}
?>

 
kezune
Air Guitarist

kezune


 visit kezune's website: Designer Genes
  6/17/2013

<?php
$x = 2-1;
$n = $x;
$z = $n+$x;
$location1 = "USA";
$username = $_POST['name'];

if($z != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
if($username != null) {
$message = "Hello "."$username." of ".$location1;
}
else
$message = "Hello!";
}
}

echo $message;
?>


Updated Rehosting Policy[/title]
 
K@nilb

K@nilb



  6/17/2013

<?php
$x = rand(0, 15);
$n = $x;
$z = $n+$x;
$location1 = "USA";
$username = $_POST['name'];

if($z != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
if($username != null) {
$message = "Hello "."$username." of ".$location1;
}
else
$message = "Hello!";
}
}

echo $message;
?>

 
kezune
Air Guitarist

kezune


 visit kezune's website: Designer Genes
  6/17/2013

<?php
$x = rand(0, 15;
$n = $x;
$z = $n+$x;
$location1 = "USA";
$username = $_POST['name'];

if($z != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
if($username != null) {
$message = "Hello "."$username." of ".$location1;
}
else
$message = "Hello!";
}
}

$w = 5;
echo "<br>Launching in";
while($w > 0)
{
$w--;
echo "<br>".$w;
}
echo $message;
?>


Updated Rehosting Policy[/title]
 
K@nilb

K@nilb



  6/17/2013

<?php
$x = rand(0, 15;
$n = $x;
$z = $n+$x;
$location1 = "USA";
$username = $_POST['name'];

if(isset($_POST['name'])) {
if($z != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
if($username != null) {
$message = "Hello "."$username." of ".$location1;
}
else
$message = "Hello!";
}
}

$w = 5;
echo "<br>Launching in";
while($w > 0)
{
$w--;
echo "<br>".$w;
}
echo $message;
}
else {
echo '<form action="strangeogame.php" method="post">
Name: <input type="text" name="name">
<input type="submit">
</form>';
}
?>

 
kezune
Air Guitarist

kezune


 visit kezune's website: Designer Genes
  6/17/2013  1

<?php
include 'ettins.php';

switch ($ettinbreed) {
case 'Poodle':
echo "Ettin needs a cookie.";
break;
case 'Minimordor':
echo "Ettin push dispensor";
break;
case null:
echo "Ettin BREAK website!";
break;
}

$x = rand(0, 15;
$n = $x;
$z = $n+$x;
$location1 = "USA";
$username = $_POST['name'];

if(isset($_POST['name'])) {
if($z != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
if($username != null) {
$message = "Hello "."$username." of ".$location1;
}
else
$message = "Hello!";
}
}

$w = 5;
echo "<br>Launching in";
while($w > 0)
{
$w--;
echo "<br>".$w;
}
echo $message;
}
else {
echo '<form action="strangeogame.php" method="post">
Name: <input type="text" name="name">
<input type="submit">
</form>';
}
?>


Updated Rehosting Policy[/title]
 
kezune
Air Guitarist

kezune


 visit kezune's website: Designer Genes
  6/24/2013

<?php
include 'ettins.php';

$creatchi_breed = rand(0, 2);

switch ($ettinbreed) {
case 'Poodle':
echo "Ettin needs a cookie.";
break;
case 'Minimordor':
echo "Ettin push dispensor";
break;
case null:
echo "Ettin BREAK website!";
break;
}

$b = rand(5, 10);
$x = rand(0, 15);
$n = $x;
$z = $n+$x-$b;
$location1 = "USA";
$location2 = "UK";
$location3 = "South Korea";
$location4 = "Japan";
$location5 = "Netherlands";
$locnum = rand(1, 5);
$username = $_POST['name'];

if(isset($_POST['name'])) {
if($z != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
if($username != null) {
if($locnum == 1)
$message = "Hello $username of $location1";
elseif($locnum == 2)
$message = "Hello $username of $location2";
elseif($locnum == 3)
$message = "Hello $username of $location3";
elseif($locnum == 4)
$message = "Hello $username of $location4";
elseif($locnum == 5)
$message = "Hello $username of $location5";
}
else
$message = "Hello!";
}

echo "<br>";

$w = 5;
echo "<br>Launching in";
while($w > 0)
{
$w--;
echo "<br>".$w;
}
echo $message;
}
else {
echo '<form action="strangeo.php" method="post">
Name: <input type="text" name="name">
<input type="submit">
</form>';

if ($creatchi_breed==0)
{$creatchi_breed = "nornchi";}
if ($creatchi_breed==1)
{$creatchi_breed = "grendelchi";}
if(creatchi_breed==2)
{$creatchi_breed = "ettinchi";}

echo "Enjoy your new ".$creatchi_breed;
}
?>


Updated Rehosting Policy[/title]
 
TheSecond

TheSecond


 visit TheSecond's website: Dr. Ni's Laboratory of Wonder
  6/27/2013

<?php
include 'ettins.php';

$creatchi_breed = rand(0, 2);

switch ($ettinbreed) {
case 'Poodle':
echo "Ettin needs a cookie.";
break;
case 'Minimordor':
echo "Ettin push dispensor";
break;
case null:
echo "Ettin BREAK website!";
break;
}

$b = rand(5, 10);
$x = rand(0, 15);
$n = $x;
$z = $n+$x-$b;
$location1 = "USA";
$location2 = "UK";
$location3 = "South Korea";
$location4 = "Japan";
$location5 = "Netherlands";
$locnum = rand(1, 5);
$username = $_POST['name'];
$oops = $b/$x;

if($oops >0) {
$message = "Wait for it...";
echo $message};
if(isset($_POST['name'])) {
if($z != 1) {
$message = "Hello World";
$ettin = strrev($message);
echo $ettin;
}
else {
if($username != null) {
if($locnum == 1)
$message = "Hello $username of $location1";
elseif($locnum == 2)
$message = "Hello $username of $location2";
elseif($locnum == 3)
$message = "Hello $username of $location3";
elseif($locnum == 4)
$message = "Hello $username of $location4";
elseif($locnum == 5)
$message = "Hello $username of $location5";
}
else
$message = "Hello!";
}

echo "<br>";

$w = 5;
echo "<br>Launching in";
while($w > 0)
{
$w--;
echo "<br>".$w;
}
echo $message;
}
else {
echo '<form action="strangeo.php" method="post">
Name: <input type="text" name="name">
<input type="submit">
</form>';

if ($creatchi_breed==0)
{$creatchi_breed = "nornchi";}
if ($creatchi_breed==1)
{$creatchi_breed = "grendelchi";}
if(creatchi_breed==2)
{$creatchi_breed = "ettinchi";}

echo "Enjoy your new ".$creatchi_breed;
}
?>


My favorite norn is still Belldandy.
 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
0 online
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki