Page 1 of 1
security
Posted: Thu Dec 29, 2011 1:37 am
by sumitsinha
What is the source code used for security purpose in any php enabled website?
Re: security
Posted: Fri Dec 30, 2011 11:04 am
by flying_circus
This is too broad a question.
Security is not a few lines of code added to your project. Tell us what you are trying to and we might be able to give you some suggestions.
A better approach might be to read a book on the subject, try the book by Ilia, the Guide to PHP security:
http://www.amazon.com/php-architects-Gu ... 0973862106
Re: security
Posted: Mon Jan 02, 2012 3:10 pm
by social_experiment
sumitsinha wrote:...security purpose in any php enabled website?
Imo it is more a mindset than just some code
Re: security
Posted: Fri Jan 27, 2012 5:36 pm
by egg82
I think what you're asking for is a secure encryption method that will allow you to safely store information in a database? (try rijndael-256)
Or perhaps something like mysql_real_escape_string() which will help make sure attackers can't use mysql injection?
Or strip_tags() to prevent php injection?
That's about it off the top of my head...