Re: [PHP] Secure input

2006-02-27 Thread Curt Zirzow
On Mon, Feb 27, 2006 at 12:20:51PM +0100, [EMAIL PROTECTED] wrote: > > Hi, > > What shall one do to avoid people that trys to manipulate my server? > > I mysql_real_escape_string() all input from GET and POST. The mysql_escape_string() will protect you from sql injections, the thing you have to

Re: [PHP] Secure input

2006-02-27 Thread tedd
Hi, What shall one do to avoid people that trys to manipulate my server? I mysql_real_escape_string() all input from GET and POST. A long time ago I think I used addslashes or something like that too, so people couldn't insert php code in their input. Is that still something I should do, or d

Re: [PHP] Secure input

2006-02-27 Thread Greg Schnippel
On 2/27/06 6:20 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > When users input is displayed for others then themself I try to filter out > html tags too. I type cast all relevant variables before processing them as one last check. Type casting forces the variable to be of the type you e

[PHP] Secure input

2006-02-27 Thread emil
Hi, What shall one do to avoid people that trys to manipulate my server? I mysql_real_escape_string() all input from GET and POST. A long time ago I think I used addslashes or something like that too, so people couldn't insert php code in their input. Is that still something I should do, or d