hello I want replace following phrase:
tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif
with:
http://mysite.com/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif
I have tried :
$comments = preg_replace ("tinymce/", "http://mysite.com/tinymce/", $comments);
but i get an error:
warning Delimiter must not be alphanumeric or backslash
can you help me?
thanks
Use
str_replace.just be very careful with this: It’s a very primitive method. For example, if you run it twice, it will replace the occurrence in the already correct
http://mysite.com/tinymce/, breaking the link in the process.