Hello there, I just created a small shoutbox for my website visiters. At the first glance, I just wanted to have a little and basic shoutbox, but now I just added some other things, and I now wanted to add emoticons (smilies) and I used str_replace and preg_replace, but both functions are replacing smiley's code to the picture very slow, thus it gos over the 30 seconds php limit, meaning the user can't post his/her message. The idea is: In the $codes array put all codes which will be replaced with according image (e.g.) code = :), image = <img src=sml/smile.gif alt=smile Please don't upload it anywhere and don't share it in other meaning, except for the help. Here's the link for that, please be fast, if possible :) http://dl.dropbox.com/u/21506578/shoutbox_help.zip btw, I included all pages you need for testing it. And, I wanted to ask, are there any php debuggers or something like that? Regards, Nikola Stojsic (NS studios) e-mail: ns.studios1@xxxxxxxxx skype: nikola.stojsic twitter: nsstudios1 aim: nikolastojsic web site: http://www.nsstudiosweb.com ** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq