Need to use PHP_SELF instead of __DIR__.