Refined java to php communication.