为什么我的包含项使用不正确的DIRECTORY_SEPARATOR?

时间:2018-08-29 23:39:59

标签: php apache ubuntu directory

我的文件包在我的无业游民的盒子上工作正常,在生产中不起作用。请告诉我为什么?

示例:

include 'app\Exceptions\exception_handler.php';

它在Linux上不应该工作,但是可以工作。为什么?

以下是其工作位置的配置,但不应:

print 'directory separator is ' . DIRECTORY_SEPARATOR . "\n"

返回

  

我的目录分隔符是/

phpinfo()

PHP Version - 5.6.37-1+ubuntu18.04.1+deb.sury.org+1
System - Linux homestead 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64
Server API - Apache 2.0 Handler
Apache Version - Apache/2.4.29 (Ubuntu)

是因为我使用Windows共享文件夹来保留Ubuntu游民箱上托管的文件吗?

0 个答案:

没有答案