Back end php functions

back end php function "in progress"