sto tentando di cancellare un link del tipo
in un div, ma questo codice non funzionacodice:<a href="http://www.google.com/"><img src="/banner/images/abc.jpg"></a>
molto probabilmente è il pattern che è scritto male..codice:$htmlContentString = file_get_contents('templates/content.tpl'); $pattern = "<a href=\"".$_POST['url']."\"><img src=\"/banner/images/".$_POST['src']."\"></a>"; str_replace ($pattern, "",$htmlContentString); file_put_contents('templates/content.tpl', $htmlContentString);