Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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:

<?php

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
add comment

2 Answers

up vote 5 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: http://forums.macrumors.com/showthread.php?t=164713

Hope this helps :)

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.