security
Moderator: General Moderators
-
sumitsinha
- Forum Newbie
- Posts: 2
- Joined: Thu Dec 29, 2011 1:29 am
security
What is the source code used for security purpose in any php enabled website?
- flying_circus
- Forum Regular
- Posts: 732
- Joined: Wed Mar 05, 2008 10:23 pm
- Location: Sunriver, OR
Re: security
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
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
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: security
Imo it is more a mindset than just some codesumitsinha wrote:...security purpose in any php enabled website?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Re: security
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...
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...