I have failed to find an explanation of what $user == '.' or $user == '..' means in php. I have a folder called $rooms and the code below inspects the folder for files. But I can't find a meaning to the following: if ($user == '.' || $user == '..'). I do know the two vertical lines mean 'or'. I have found this link useful but not offering a solution https://www.w3schools.com/php/php_operators.asp
$files = scandir($room);//List files and directories inside $rooms
foreach ($files as $user){
if ($user == '.' || $user == '..') continue;
$handle = fopen("$room/$user",'r');
To help I am including the full loop below $files = scandir($room);//List files and directories inside $rooms
foreach ($files as $user){
if ($user == '.' || $user == '..') continue;
$handle = fopen("$room/$user",'r');
$time = fread($handle, filesize("$room/$user"));
fclose($handle);
if ((time()-$time)>20) unlink("$room/$user");
}