Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

68 users online



Which one is better?

Which one is better?

Currently viewing this thread: 1 (0 members and 1 guests)


System_Failure

System_Failure

Status: Offline!

Which one is better?

I am writting a cms, and only my staff members are going to have access to it.

Now, I am trying to prevent accidental sql injection using htmlspecialchars() to change the special characters (because someone might post a news article that may contain a quote on someone or whatever)

while browsing through the manual, I also saw many other ways of preventing sql injections such as htmlentities() (I guess if I make the cms public, I'd use that), stripslashes(), get_magic_quotes_gpc() etc.

I am kind of confuse here, cause I want to use the best method, and not sure which one it is. But I think I am pretty safe with htmlspecialchars() since only my trustworthy people use the cms. However, I am planning to have a visitor submitted articles section too, so I will need a much tighter security there. So what should I use for that?

___________________

xXxXxXx

Stevie

Stevie

Neversidian
Status: Offline!

I just use mysql_real_escape_string().

___________________

"Hey, **** YOU!"

Last edited by Stevie, August 15th, 2004 07:31 AM (Edited 1 times)

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0063 seconds.