Jump to content

fopen(Blocked.txt) [function.fopen]: failed to open stream: ???


adamriley

Recommended Posts

Please post your code between

<?php
// error_reporting(E_ALL);
// echo '<pre>$_GET:' . print_r($_GET,true) . '</pre>';
// echo '<pre>$_SERVER:' . print_r($_SERVER,true) . '</pre>';
// echo $_SERVER['REQUEST_METHOD'];

if(function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get"))
@date_default_timezone_set(@date_default_timezone_get());
//
session_start();
// check to make sure there is a session
if(!isset($_SESSION['dir'])){ 
echo "Please contact webmaster as soon as posible";
die();
} else { 
}
//
$Sware_words = <<<Words
Fuck
Dick
Words;
$Name = $_POST['Name']; // get the name from the form
$Email = $_POST['Email']; // get the email from the form
$code = $_POST['Code']; // Get the secrity code
$dir = $_SESSION['dir']; // Get who they have picked
$file = $_SESSION['dir']; // Get the dir
//
$Time = date('h.i.s A'); // get the time
//
$Date = date('l jS \of F Y'); // get the date
//
// check the name to witheld it from the front person
if ($Name = "Pleasae Enter your full name"){ 
$Name = "**********";
} else { 
}
//
//
// Check That the name has not got no sware words in it
if ($Name = "$Sware_words"){ 
unset($_SESSION['dir']);
// write the normal info into the Blocked list
$Blockfile = fopen("Blocked.txt","A+");
fwrite($Blockfile, "\r\n$Name:$Email:$code:$Date:$Time");
die();
} else { 
}

$pfile = fopen("places/$dir.txt","w");

fwrite($pfile, "\r\n$Name:$Email:$code:$Date:$Time");
header('Location: http://localhost/Game/red.php?$dir');
// 

?>

tags

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.