Why do you think it might be bad practice? I personally like to keep functions separate from the rest of the site, and usually in a separate file. You include print_html.php on your other pages, correct? I don't think you have anything to worry about. Even if a user somehow knew to directly go to print_html.php the output would be empty, since none of the functions would have been presumably called.