Update characterprofile.php

something like this should work, altrough it seems to be webhost dependand mine is fine with defining it in the first run.