开发者

Is there any server configuration or anything that make __DIR__ failed

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜