Case-sensitivity and filesystems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
georgeoc
Forum Contributor
Posts: 166
Joined: Wed Aug 09, 2006 4:21 pm
Location: London, UK

Case-sensitivity and filesystems

Post by georgeoc »

Hi all,

After really far too long scratching my head, I finally realised that the reason my autoloader wasn't working correctly was due to changes in system file-sensitivity. On my home test server (running MAMP on OS X Leopard), file names seem to be case-insensitive. However, when running the tests on an external, hosted Linux box, I got file errors as the system is case-sensitive.

This will get very annoying in the future, as the only way I can be sure my tests pass is to run on a separate server. Does anyone know how I might be able to enable, or simulate, case-sensitivity in my PHP configuration, or in a particular directory of my home server?

i don't know if this is a OS X or a PHP issue.
georgeoc
Forum Contributor
Posts: 166
Joined: Wed Aug 09, 2006 4:21 pm
Location: London, UK

Re: Case-sensitivity and filesystems

Post by georgeoc »

it seems it's because I chose the Case-Insensitive option when initially installing my operating system.

So, question for all you OS X PHP-devs out there - which of the two do you use? Case-sensitive or insensitive? Or do you run your web server on a separate partition with a case-sensitive filesystem? Are there any other tricks possible, in Apache or PHP, to get round the issue. I certainly won't consider changing the filesystem for my boot drive.


MOD - perhaps this thread needs to be moved somewhere else?
Post Reply