Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not sure what site this question should be on, please feel free to move as necessary. I am working on a project in PHP where I need to differentiate between the folders 'a' and 'A'. When I run the script:


mkdir('A', 0700);
mkdir('a', 0700);


Only 'A' is created. Is this a mac problem, or is there something in a config file that I can change?

share|improve this question
up vote 7 down vote accepted

This is something I think you set up while installing MacOS. If you have chosen non-case-sensitive - you'll have to back up your data... and reformat/reinstall.

This is what I found googling for your problem:

Hope this helps :)

share|improve this answer

It depends on the filesystem, NTFS is case insensitive, ext3, ext4 etc is case sensitive, HFS+ can be either and is setup during partition creation.

I don't know if there is anyway to change this I've certainly not come across any method.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.