C and PHP code to interface with an iPhone App to control a garagedoor