SteveWh - 2:49 am on Nov 10, 2010 (gmt 0)
Sorry for my delay. Thank you all for the replies.
janharders, the main reason for stripping html and php tags is that they're irrelevant to the script's purpose. It's a text processor. If the user pastes a web page, the script still only wants the text that would be displayed on it.
chorny and phranque, thank you for the db related comments. Once the general methods for this script are worked out, there are multiple uses I can think of for it, and some involve MySQL. When starting to learn about PHP db methods (also a work in progress), I chose mysqli with its prepared statements and bound parameters. It's good to know that it looks like perl DBI provides equivalent methods.