<?phpecho "bump";?>
<?php$bump = fopen('bump.txt', r);$say = explode('\n', $bump);echo $say;?>
<?phpif (file_exists("bump.txt")) { $evilness = file_get_contents("bump.txt");}else { file_put_contents("bump.txt", "bump");}if ($evilness == "bump") { $error = "bump exists";}else { $error = "What the heck are you doing?";}?><!DOCTYPE html><html><head><title>Bump</title></head><body><?phpif (isset($error)) { echo $error;}else { echo "Need to set error as something now.";}?></body></html>
Code: [Select]...if ($evilness == "bump") { $error = "bump exists";}elseif ($evilness != "bump") { $error = "FIX YOUR DANG FILE";}else { $error = "What the heck are you doing?";}...
...if ($evilness == "bump") { $error = "bump exists";}elseif ($evilness != "bump") { $error = "FIX YOUR DANG FILE";}else { $error = "What the heck are you doing?";}...
Quote Code: [Select]...if ($evilness == "bump") { $error = "bump exists";}elseif ($evilness != "bump") { $error = "FIX YOUR DANG FILE";}else { $error = "What the heck are you doing?";}... you're implying that it is posible for it to be bump but not bump at the same time with this statement
<?php$errortext = "";if (isset($_POST['bumpbutton'])) { $errortext = "bump";}?><!DOCTYPE html><head><title>Random code</title></head><body><?php echo $errortext; ?><br /><br /><form action="bump.php" method="POST">Press the button: <input type="submit" name="bumpbutton" value="Bumpy button" /></form></body></html>