dpgf42422 2011-10-30 22:45
浏览 257
已采纳

PHP区分大小写的路径问题

I am running a SocialEngine PHP application, which i've recently migrated to another server.

And from that point on - a problem occurs:

The SocialEngine's core trying to include files in case insensitive paths, which appear not to exist (although, in the right case, they do exist)

How can I make the PHP/Apache act nicer, and also search in other cases?

For example, the SocialEngine looks for /application/modules/Menuitems.php, and the right path is /application/modules/Menu**I**tems.php.

To sum up: I want case-insensitive paths!

  • 写回答

3条回答 默认 最新

  • duanbin4847 2011-10-31 00:03
    关注

    You have case insensitive paths in windows. But when you move your page to linux path will be case sensitive. You can make function for build path that convert all letters to uppercase or lowercase (often preferred) and use one of these normalized naming styles for directory- and file- names.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥18 模拟电路问题解答有偿
  • ¥15 Matlab在app上输入带有矩阵形式的初始条件发生错误
  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)
  • ¥15 52810 尾椎c三个a 写蓝牙地址
  • ¥15 elmos524.33 eeprom的读写问题