I'm coding a new site. İt's like StackExchange, a social site and a blog. I try to create a multi-language site, however I can't decide how to do it.
I have to use modules, so I must use OOP, while having multilanguage interface. How can I do that?
There are two language options (Turkish and English), used continuously (example: home page etc.) or not (some errors; example : "please enter your mail" etc.)
I can use a class and I use array (for used continuously),
I can use a class and an XML page (for errors),
or I can have a class and three language pages: Turkish, English and errors.
Which one gives the best performance?
Other problem is php-mysql security.
I'm using mysqli. I use
mysqli_real_escape_string to block HTML characters, but it is not enough. So I additionally use stored procedures.
What else can I do? What is your advice?