[advanced search]
Results from the most recent live auction are here.
22 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-21-2008, 05:22 AM   · #1
.jd.
NamePros Regular
 
Trader Rating: (28)
Join Date: Mar 2007
Posts: 991
NP$: 0.00 (Donate)
.jd. is just really nice.jd. is just really nice.jd. is just really nice.jd. is just really nice
PHP securitie?

Right off the bat, what php security should be implemented into every script when written?

The basic security that every "new" php programmer should know..

Any help is greatly appreciated.


Please register or log-in into NamePros to hide ads
.jd. is offline   Reply With Quote
Old 05-21-2008, 06:57 AM   · #2
Peter
NamePros Staff
 
Peter's Avatar
 
Name: Peter McDonald
Location: Dundee, Scotland
Trader Rating: (42)
Join Date: Nov 2003
Posts: 4,029
NP$: 1142.95 (Donate)
Peter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud ofPeter has much to be proud of
Child Abuse Save The Children Save The Children
This is not something that can be answered with any satisfaction to be honest. Security is dependant on what you are programming.

Some things you should do is for example if register globals is enabled reverse the functionality (even better turn it off). Ensure all user input or any input you cannot gaurantee authenitcity for that it contains exactly as expected.

Ensure any data is escaped or made safe for the ntended target (mysql_real_escape_string for mysql for example or htmlentities for browsers etc etc). Also if for example you are asking someone's age ensure that the input is an int. If it is not an int purge the data and treat it as if it has not been entered. The same goes for any data

What is also paramount is that you test and double test any code written. Try to write it in an object orientated manner. Not only does this mean that you will be able to reuse the code easily and help stop replication of the same code but will also enable you to test the code thoroughly.

Also read up on security exploits and sites regarding security. 1 good site although neglected is phpsec.org. Also there is a guy called Chris Shiflett who is a PHP advocate. He does many talks, webcasts, articles etc regarding security. Take a look at his blog at http://shiflett.org/
Peter is online now   Reply With Quote
Old 05-21-2008, 09:21 AM   · #3
mholt
DNOA Member
 
Name: Matthew Holt
Location: 127.0.0.1
Trader Rating: (75)
Join Date: May 2004
Posts: 4,867
NP$: 17.21 (Donate)
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Disable register_globals.
__________________
FREE: Help With Code

Includes other technical topics:
programming, development, Windows, domain names, and Internet
mholt is offline   Reply With Quote
Old 05-21-2008, 07:02 PM   · #4
.jd.
NamePros Regular
 
Trader Rating: (28)
Join Date: Mar 2007
Posts: 991
NP$: 0.00 (Donate)
.jd. is just really nice.jd. is just really nice.jd. is just really nice.jd. is just really nice
Thanks both of you for all the help.

.jd.
.jd. is offline   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Get Your Site Linked at LinkedKeywords.com Special Offer Special Offer
Advertise your business at NamePros
All times are GMT -7. The time now is 10:59 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0