Ben Rowe's answer is almost certainly the reason why this happens.
I do not recommend this, but you can always wrap your function in function_exists()
if(!function_exists("mss")) { function mss($value){ $data = mysql_real_escape_string(trim(strip_tags($value))); return $data; } }
This decision is erratic. It is almost always preferable to find out WHY your file is included twice or where this function is defined twice. But for special circumstances, this decision may be appropriate.
Mike b
source share