I have created a config.php file for my site. it seems to be working but the images are not displaying .
define('HOST' , $_SERVER['DOCUMENT_ROOT']);
define('DIR_BASE', HOST.'/m.pdi');
define('DIR_INCLUDES', DIR_BASE . '/includes/');
define('VIEW_HEADER', DIR_INCLUDES . 'header.php');
define('VIEW_NAVIGATION', DIR_INCLUDES . 'horizontalmainmenus.php');
define('VIEW_FOOTER', DIR_INCLUDES . 'footer.php');
define('DIR_IMAGES', DIR_BASE . '/images/');
<img src="<?PHP echo DIR_IMAGES; ?>final-logo.jpg">
My image location looks like http://192.168.1.8/var/www/html/m.pdi/images/final-logo.jpg
How to fix this error?
Your image path has to be relative to your web root
this means your web root /m.pdi/images/