What is the difference in displaying images between Chrome and Firefox when using PHP?

When displaying images in Chrome and Firefox using PHP, the issue often arises due to differences in how the browsers handle image paths. To solve this, you can use the PHP `$_SERVER['DOCUMENT_ROOT']` variable to get the root directory of your project and then concatenate it with the image path.

<img src="<?php echo $_SERVER['DOCUMENT_ROOT'] ?>/path/to/image.jpg" alt="Image">