First off, Mac OS X is not my native operating system but since I'm comfortable in Ubuntu, it's been an easy transition for the most part.
Being that it's Unix-based, I was under the impression this os was case-sensitive, but the file_exists()
function is saying otherwise.
In my htdocs file, i have these 2 files:
test.php
MyFiLeWiThMiXeDCaSe.php
In test.php, i have this code:
if(file_exists('myfilewithmixedcase.php')) {
echo 'exists';
} else {
echo 'doesnt exist';
}
// ouputs: exists
Anyone know how/why this is happening? This is causing a problem because when we deploy code like this to a linux OS, file_exists()
is returning false.
BTW: I'm using MAMP PRO as the local web server.