Hi, The following command is working on my localhost connection (my PC). $see= preg_replace($pat, $repl, $see, -1,$countb); But when I upload file to server, it says: "warning: wrong parameter specified for count." So I removed the -1 in that code. $see= preg_replace($pat, $repl, $see, $countb); Now no error, but no replacement either. What am I doing wrong? I need to check the number of replacements done in the string... Thanks!
Never mind, I counted the other way. Sorry for making this thread. Should have thought a little more, but was just too excited and was urgent... Bye