i am of the opinion that u call a function before u exit.
Eg.
function showname(){
echo "this is to simply display the name";
}
echo "this is before exit";
//call function showname()
showname();
exit();
i think this is the best thing to do.
Regards
Mandar Kelkar