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


Postby sumitsinha » Thu Dec 29, 2011 2:37 am

What is the source code used for security purpose in any php enabled website?
Forum Newbie
Posts: 2
Joined: Thu Dec 29, 2011 2:29 am

Re: security

Postby flying_circus » Fri Dec 30, 2011 12:04 pm

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: ... 0973862106
User avatar
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 11:23 pm
Location: Sunriver, OR

Re: security

Postby social_experiment » Mon Jan 02, 2012 4:10 pm

sumitsinha 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
DevNet Master
Posts: 2775
Joined: Sun Feb 15, 2009 12:08 pm
Location: .za

Re: security

Postby egg82 » Fri Jan 27, 2012 6:36 pm

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...
User avatar
Forum Contributor
Posts: 156
Joined: Sat Oct 01, 2011 9:29 pm
Location: Colorado, USA

Return to PHP - Security

Who is online

Users browsing this forum: No registered users and 3 guests