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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.