Use dirname(__FILE__) instead __DIR__ to support PHP 5.2