added funtions php file for storing all the functions used in project