PHP function for Pusherapp.com