Hey,
Im running a simple script to take email addresses and add to file -
<?
$fName = @$_POST["add_me"];
// Set the string to be written to the file
$values = "$fadd_me $ladd_me\r\n";
// Open the file for truncated writing
$fp = @fopen("notify_list.txt", "w") or die("Sorry no luck..");
$numBytes = @fwrite($fp, $values) or die("Couldn't write values to file!");
@fclose($fp);
print "Wrote $numBytes bytes to file successfully!";
?>
But it returns weirdness - taking the variable from the input and giving me this result -
"add_email.phpTEXTR*ch†~ºq=]ºqz.mBIN‚?;úSorry no luck.."
Is this a problem w/ my syntax on server or what?