I'm pretty new at this forum, and don't know all functions, like how to paste code, but I'll try my best.
I've been using a PHP script for logging, and are now trying to create a log directory for each day.
The command I can't get to work is this one:
if (!file_exists('Logs/'.$todaydate'/')) { mkdir('Logs/'.$todaydate, 0777, true); }
I haven't fully comprehended how to incorporate data and text together.
my first try:
if (!file_exists('Logs/$todaydate/')) { mkdir('Logs/$todaydate', 0777, true); }
Just created a directory called $todaydate
The second try:
if (!file_exists('Logs/'.$todaydate'/')) { mkdir('Logs/'.$todaydate, 0777, true); }
Just created an syntax error..
Anybody got any idea?