added function to call PHP relay