Case-inconsistency of PHP file paths on Mac / MAMP?

前端 未结 4 706
日久生厌
日久生厌 2020-12-29 23:22

I\'m developing a PHP program on MAMP, and just realized the following screwy behavior:

echo \"
PATH = \".dirname(__FILE__); include \'include.php\
4条回答
  •  悲&欢浪女
    2020-12-30 00:00

    I have had similar problems developing PHP on MAC OS X. You can format with a case sensitive filesystem but if you are using Adobe's design software you might run into trouble: http://forums.adobe.com/thread/392791

    The real issue is that the file system that is said to be case insensitive is in actual fact partially case insensitive. You can create two files with names 'Filename' and 'filename' in the same directory but 'Filename' and 'filename' may point to both files: http://systemsboy.com/2005/12/mac-osx-command-line-is-partially-case-insensitive.html

提交回复
热议问题