Add php functions. Based on tutorial at AndroidHive