Page 1 of 1

If a word is found, display something

Posted: Mon Apr 05, 2004 12:56 am
by apollovega
Okay, my question is pretty simple (specially to you advanced php'ers :) )
I was wondering if it were possible (and if so, how) you could achieve this... (bear with me as I'm pretty new to php hehe)

Basically, what I want this lil script to do is if the word "Nadia" (or whatever) is found at all on the entire page, to replace that word with a picture instead.. Think of it this way, the Emoticons on the side. Whenever someone types :-) they get a smily instead. That's exactly what I want to do. Any ideas as to how this is done? Thanks!
P.s, if you want you could just point me into the right direction and I could try my hand at figuring it out. Any help would be muchly appreciated.. Thanks!

Posted: Mon Apr 05, 2004 4:02 am
by twigletmac
[php_man]str_replace[/php_man]()

Mac