Here’s the condition –
if ($file !== "." || $file !== "..")
not working.
if (($file !== ".") || ($file !== ".."))
not working either.
if ($file !== ".")
works just fine. ‘
That really drives me edgy. I’ve read all that php.net has to offer on logical operators (http://php.net/manual/en/language.operators.logical.php), a bunch of crappy tutorials I googled up, and I triple-checked the operator precedence. From all points, either of ways should work.
What could be the reason?
$fileshould not be.AND it should not be..if ($file !== "." && $file !== "..")