C code and PHP code to interface an iPhone App to the RaspberryPi