I'm in the process of making a custom webserver in Java, and right now I'm getting PHP to work. The problem I'm having, is that while I can throw the PHP file in command line and get a parsed result, and that's all fine and dandy, how do I start throwing in things like GET/POST/SERVER variables? Streams from the connection? I want to make all PHP scripts compatible, but online I have found very little documentation on how to accomplish this.