Warm tip: This article is reproduced from stackoverflow.com, please click
apache linux php filesystems case-insensitive

Is there a way to include files case insensitively in Linux?

发布于 2020-04-07 23:22:12

I'm into a legacy PHP project which is developed in WAMP windows platform.

Code-base is heavy and it has lot of files included via include, require language constructs. File naming convention is not consistent, having small cases, camel cases as file names. As Linux does not support case insensitive file includes, I'm not sure how to run this in my apache. Since include, require are PHP language constructs, could not override them as well. Is there any way to make this run?

I'm actually using Ubuntu for my development. P.S: Some suggested that the only way is to make the file names consistent. But the problem is having many hundreds of files and existing team is not comfortable in coming out of windows.

Wondering if this could be achieved. Any help and insights will be much helpful.

Questioner
bubi
Viewed
60
Mark Setchell 2020-02-01 05:12

As suggested in the comments, you could use (and it seems you have already) a FAT32 filesystem mounted up somewhere suitable to act as a case-insensitive filesystem for your PHP files.