What are the potential pitfalls of using absolute paths in include statements in PHP?

Using absolute paths in include statements can make the code less portable and harder to maintain. If the file structure changes, the absolute paths will need to be updated manually. To avoid this issue, it is recommended to use relative paths instead.

<?php
include(__DIR__ . '/path/to/file.php');
?>