hello everyone i need some help in this i tried many ways i google it etc...
and yes i am new in this...
Here goes my headaches
$output1='<a href="http://www4.site.com/photo/a/user/img/pict/name1212.jpg" rel="nofollow">
<img src="http://www4.site.com/photo/a/user/img/pict/name1212.jpg" border="0" alt="name" /></a>';
i need to change /img/ to /thumb/ at <img src...
$links = str_replace('/img/', "/thumb/", $output1); this works but it changes the href too
what i need is some help to the function only change in <img src
somenting like this
$links = str_replace('/img/ |<img src', "/thumb/", $output1);
so the output will be
<a href="http://www4.site.com/photo/a/user/img/pict/name1212.jpg" rel="nofollow">
<img src="http://www4.site.com/photo/a/user/thumb/pict/name1212.jpg" border="0" alt="name" /></a>