I have PHP variable holding string, within i have a mix of contents having links and other containing image links, like shown below
$baseurl = "http://www.myweb.com/home/";
$content = "<a href="#"><img src="images/comment.gif" alt="Comment" /></a></p>
<div class="thirds"> <p><b><a href="admin/local.html" class="title">Manage your content</a></b><br /><img src ="subfolder/home.jpg" alt="home" />Lorem ipsum dolor sit amet esta pa, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt....";
My Target is to echo variable 'content' having all links with a tag, src tag, modified to absolute meaning, for the first $content link contained has to be <a href="http://www.myweb.com/home/#"
this should be the same to all images example for <img src="images/comment.gif
should be <img src="http://www.myweb.com/home/images/comment.gif alt="Comment" />
.. Any help please, note, all contents are contained in a php string variable.