What are the best practices for specifying paths to images in PHP includes?

When specifying paths to images in PHP includes, it is important to use relative paths to ensure portability across different environments. One common best practice is to define a constant for the base path of your project and then concatenate it with the relative path to the image file when including it in your PHP code.

<?php
define('BASE_PATH', '/path/to/your/project/');

include(BASE_PATH . 'images/image.jpg');
?>