Hello,
I am trying to go through and optimize my code.
I am using Laser's text prepping functions on a lot of pages.
function prepIn($input) {
$input = trim($input);
if (!get_magic_quotes_gpc()) {
return addslashes($input);
}
return $input;
}
function prepOut($input) {
$input = stripslashes($input);
return htmlspecialchars($input);
}{
And want to use them as an include file. I would say about 80% of my pages use the prepout and maybe 10% use prepIn. Would you include them both in one file or seperate them? I know this sounds picky,.but I'm trying to get some general "good practice" knowledge here. How pressing is it on a server to be declaring functions that won't be used?