开发者

Is there any server configuration or anything that make __DIR__ failed

开发者 https://www.devze.com 2023-01-12 11:58 出处:网络
I have develop a framework where most of its path depend on __DIR__. Is there any开发者_Go百科 server configuration or anything that would make __DIR__ unreliable?Not having PHP 5.3 would be a deal br

I have develop a framework where most of its path depend on __DIR__. Is there any开发者_Go百科 server configuration or anything that would make __DIR__ unreliable?


Not having PHP 5.3 would be a deal breaker. You could use dirname(__FILE__) if you don't want to require 5.3.

Other than that, no, it should always be available.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号