6

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?

JJJollyjim
  • 265
  • 2
  • 4
  • 12

2 Answers2

7

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 :)

tftd
  • 1,480
  • 7
  • 24
  • 38
4

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.

chunkyb2002
  • 688
  • 3
  • 9