Kokesh
Kokesh

Reputation: 3263

Can I force Apache and PHP to use lowercase/uppercase filenames?

I am developing under Windows and need to use upper/lowercase filenames in my PHP project. Is there some way to force Apache+PHP (XAMPP) to respect difference between upper & lowercase characters in filenames? My production server is Linux, so I always end up with some links not working.

Upvotes: 1

Views: 1762

Answers (1)

RickN
RickN

Reputation: 13500

This is not an Apache or PHP issue. You're running Windows, so you're probably using NTFS as the file system on your hard drive. NTFS is, by default, case insensitive. That means that you can't have both "myfile.txt" and "mYfIlE.tXt".

Apparently, you can change this. I wouldn't (software that expects case insensitivity may break).

Run a virtual machine with Linux on it. Use that as your development server.

Upvotes: 2

Related Questions