php functions

most of this will break if a isser varaible is used.