你好,我想替換下面的語句:與添加更換網址PHP
tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif
:
http://mysite.com/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif
我曾嘗試:
$comments = preg_replace ("tinymce/", "http://mysite.com/tinymce/", $comments);
,但我得到一個錯誤:
warning Delimiter must not be alphanumeric or backslash
你能幫助我嗎? 謝謝