PHP Security

@angeldev (171)
Romania
July 3, 2010 1:31pm CST
I'm using queryes and PHP.. I've added functions to remove sql statments from user input, slashes and so on. Added some optimization things and other. Id like some more advices regarding php optimization and security. Were speaking abouta community / game website that lets users build, chat..
2 responses
• Canada
9 Jul 10
When inserting user inputs in a SQL table, always use PHP function mysql_real_escape_string($userInput) It adds backslashes to dangerous characters. You may read more about it here: http://php.net/manual/en/function.mysql-real-escape-string.php
• China
8 Jul 10
i suggest that you use some software to encode your php project. such as the Mcrypt can increase the security of your project. it is easy and effective.