I want to enter the following code into the fwrite() function
"<?php
session_start();
if ($_SESSION['currentuser'] === $username){
echo 'Logged in!';
}else{
echo 'You need to login!';
}?>"
but it shows me the T_ENCAPSED_AND_WHITESPACE error for the line if ($_SESSION['currentuser'] === $username){
can anybody help me with this.