Hi!
I am kind of new to php.
$myFile = "msg.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $beforeData;
fwrite($fh, $stringData);
$stringData = ""+myname+": "+mymessage+"\n";
fwrite($fh, $stringData);
fclose($fh);
I need to set more than one variable in that red line. How do I do that?
I'm trying to make a chat. It writes in the TXT file. How do I set 2 vars in one line?
This doesn't work:
$stringData = ""+$myname+": "+$mymessage+"\n";
Please help! Thanks!