service files for medication monitor ipad in php