PHP security is something you have to take very serious because every site will suffer damages if a hacker finds vulnerabilities in the php code.
With the php secure code below you can protect your php project from SQL injections and XSS.
Basically, this function will clean your variable, starting with ereg_replace function which will replace ‘, “, < and > with empty space “”.
(more…)