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.
精彩评论