We need a PHP(5) script which does the following:
-Receive compressed XML files (as .gz) through HTTPS
-Unpack the XML file
-Read a specific tag in the XML file (customer ID code)
-Check the database for the customer name corresponding to the ID
-Move the XML file to that customers' folder on the server
-Log every action above and notify any errors via e-mail.