security

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
sumitsinha
Forum Newbie
Posts: 2
Joined: Thu Dec 29, 2011 1:29 am

security

Post by sumitsinha »

What is the source code used for security purpose in any php enabled website?
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: security

Post 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
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: security

Post by social_experiment »

sumitsinha wrote:...security purpose in any php enabled website?
Imo it is more a mindset than just some code
“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
User avatar
egg82
Forum Contributor
Posts: 156
Joined: Sat Oct 01, 2011 9:29 pm
Location: Colorado, USA

Re: security

Post 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...
Post Reply