Try:
$filename="C:/xampp/project/Logs/" . $m . '.txt';
You had mismatched quotes. I’ve also changed the backslashes to forward slashes, because backslashes have special meaning in PHP strings; Windows allows either style to be used in pathnames.
4
solved PHP – use of variable [closed]