I tried this:
file_put_contents("logs/login.log", "$date: ".$userow['UserName'] ($userow['GBS'])" logged in.".PHP_EOL, FILE_APPEND);
But I get this error:
<b>Parse error</b>: syntax error, unexpected '" logged in."' (T_CONSTANT_ENCAPSED_STRING)
I don't see what the problem is, there are 4 " in what to put in the login.log, and the syntax appears correct in text editors. I can't figure this out.