Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.