PHP Include Breaks Relative Image Links

I’m including just the content sections of pages in one main PHP “shell” file. So, near the middle of the page, depending on the requested content, a php file is included from a sub folder, say “/content/mypage.php”;

it is then displayed on the main shell php page “/index.php”.

However, the “/content/mypage.php” may have image links like “…/images/myimage.jpg” but when its displayed in the shell file, the url should be “/images/myimage.jpg”.

Is there any way to use php to remove the relative link folders ("…/") or is there another way around this?

I hope I’ve explained this well enough. Thanks for any help.