adds php script to connect to server, parse response and send reply