How can the use of dirname(__FILE__) in include statements improve file inclusion in PHP?

When including files in PHP, using dirname(__FILE__) in include statements can improve file inclusion by providing the absolute path of the current file's directory. This ensures that the included file is always referenced correctly, regardless of the current working directory or file structure.

// Include file using dirname(__FILE__)
include dirname(__FILE__) . '/path/to/yourfile.php';