Asterisk fast agi with php

dear all
im new to asterisk agi im trying to setup a remote phagi with asterisk i managed to link the 2 together but i cant make the script talk to asterisk what i mean is that im sending the variables to the appache on the other server but i cant seem to receive a response from it to my channel can anyone provide a simple example of passing parameters between asterisk and a remote appache server 2 ways communication