guoer
V2EX  ›  PHP

php require_once 大小写敏感问题

  •  
  •   guoer · Jul 7, 2015 · 3456 views
    This topic created in 4154 days ago, the information mentioned may be changed or developed.

    require_once(Abc.php)引用abc.php
    在osx上能成功,但在centos上报错。
    这个大小写敏感可以设置吗?

    6 replies  •  2015-07-08 17:21:37 +08:00
    jybox
    jybox
    Jul 7, 2015
    1
    取决于文件系统
    jugelizi
    jugelizi
    Jul 7, 2015
    2
    libux系是区分文件大小写的,win平台不区分,楼主半路出家的啊
    loveyu
    loveyu
    Jul 7, 2015
    3
    在win下也是可以的,不过linux应该也不可以。
    bearcat001
    bearcat001
    Jul 7, 2015❤️2
    4
    Mac下磁盘只有格式化成Case-sensitive才会严格检测大小写
    guoer
    guoer
    OP
    Jul 8, 2015
    5
    @jugelizi 以前一直用Ubuntu,现在换mac。
    Grant06
    Grant06
    Jul 8, 2015
    6
    Mac是不区分大小写的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1987 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 08:59 · PVG 16:59 · LAX 00:59 · JFK 03:59
    ♥ Do have faith in what you're doing.