Hi,
I want to sanitize user input for all my sites.
So, I want to keep this code in openlitespeed lsphp82 somewhere so that it applies to all my websites :
I want to run this php code at the beginning of all my php scripts.
Instead of editing all the php files of all my websites, is there an easy way?
please suggest.
Thanks
I want to sanitize user input for all my sites.
So, I want to keep this code in openlitespeed lsphp82 somewhere so that it applies to all my websites :
I want to run this php code at the beginning of all my php scripts.
PHP:
foreach ($_GET as $key => $value) {
$_GET[$key] = filter_var($value, FILTER_SANITIZE_STRING);
}
Instead of editing all the php files of all my websites, is there an easy way?
please suggest.
Thanks