I have checked this massage board three times over looking for the answer.
In PHP, why won't this write to test.txt?
file_put_contents not creating txt file
And yes I have checked, checked and recheck file and folder permissions.
-rw-rw-rw- 1 www-data www-data 3 Mar 14 16:01 fileMsgid.txt
I have tried 777 775 and 650 with no success.
The line of code is simple
$msgId = 3;
file_put_contents('fileMsgid.txt', $msgId);
The Ubuntu system won't create the file or write content to the file.
This works fine on the Windows development server but when I move the code to the Linux production server, squat happens.
Any ideas?