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

做~自己de王妃 提交于 2019-12-25 03:57:44

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/14853550/can-i-force-apache-and-php-to-use-lowercase-uppercase-filenames

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!