Jump to content

Common Security Mistakes


jonsamwell

Recommended Posts

Hi everyone,

 

I'm fairly new to programming php but have alot of experience in java and other OO languages.

 

I am creating a login script and want it to be fairly secure.

 

I wondered what things i could do or should be aware of regarding security issues with php scripting?

 

Any advice appreciated

 

Regards

 

Jon

Link to comment
https://forums.phpfreaks.com/topic/140007-common-security-mistakes/
Share on other sites

mysql_real_escape_string

 

Any data that is coming from the form and being tested on the DB. But make sure that get_magic_quote_gpc is off before doing that or it will double escape the data, if it is not off then stripslashes on the data before using the real_escape_string.

 

Also make sure that register_globals is off, this can cause problems.

 

Other than that you should be good.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.