Don’t Abuse dirname( __FILE__ )

https://josephscott.org/archives/2010/04/efficient-php-dont-abuse-dirname-__file__/