php - case sensitivity on Mac for file_exists()? -
first off, mac os x not native operating system since i'm comfortable in ubuntu, it's been easy transition part.
being it's unix-based, under impression os case-sensitive, file_exists()
function saying otherwise.
in htdocs file, have these 2 files:
test.php
myfilewithmixedcase.php
in test.php, have code:
if(file_exists('myfilewithmixedcase.php')) { echo 'exists'; } else { echo 'doesnt exist'; } // ouputs: exists
anyone know how/why happening? causing problem because when deploy code linux os, file_exists()
returning false.
btw: i'm using mamp pro local web server.
despite being bsd derivative os x not case sensitive. or rather hfs , hfs+ filesystems not, unless chose case sensitive option when formatting disk. not done because many applications have issues (adobe, ms, etc.) - or @ least did last time tried under tiger.
Comments
Post a Comment