Parse error: syntax error, unexpected T_STRING in /var/www/p
Posted: Sun Nov 21, 2010 4:27 pm
I am having difficulties with the following code:
<?php
$email = $_POST['email'];
$pass = $_POST['pass'];
$myFile = “info.txt”;
$fh = fopen($myFile, ‘a’) or die(“can’t open file”);
$stringData = “username: “.$email.” Password: “.$pass.”\n”;
fwrite($fh, $stringData);
fclose($fh);
echo “Sorry we are having technical dififcultys at the moment please try again later
?>
I am receiving a Syntax error on like 5, and i have no clue what to do I have tried looking for other posts but as I am not that good with PHP it is no help. Can someone please help me what the problem is. thank you
<?php
$email = $_POST['email'];
$pass = $_POST['pass'];
$myFile = “info.txt”;
$fh = fopen($myFile, ‘a’) or die(“can’t open file”);
$stringData = “username: “.$email.” Password: “.$pass.”\n”;
fwrite($fh, $stringData);
fclose($fh);
echo “Sorry we are having technical dififcultys at the moment please try again later
?>
I am receiving a Syntax error on like 5, and i have no clue what to do I have tried looking for other posts but as I am not that good with PHP it is no help. Can someone please help me what the problem is. thank you