What is the best way to handle including files from subfolders in PHP?

When including files from subfolders in PHP, the best way to handle it is to use the `__DIR__` magic constant along with `dirname(__FILE__)`. This allows you to specify the path to the file relative to the current file, making it easier to include files from subfolders without worrying about the directory structure.

// Include file from a subfolder using __DIR__
include __DIR__ . '/subfolder/file.php';

// Include file from a subfolder using dirname(__FILE__)
include dirname(__FILE__) . '/subfolder/file.php';