Initial Commit

Added the main PHP script as well as the functions file.