Hi fellow PHP-enthousiast!
For a new project I'm trying to access the PHP engine from my Java application. I have been running some tests with redirecting the stdin & stdout to Java by creating a new Process by executing 'php.exe' and trying to read from the InputStream (stdout) and writing to the OutputStream (stdin). While the PHP process is running my Java application would not receive anything from the stdin. While trying to figure out what was going wrong I came to the conclusion that it might be better to directly access the PHP methods using native calls. Has anybody ever tried doing this? Any (java) sources that might help me doing this?
I'm aware that this might be more a Java-related question. If so, maybe anybody in here can give me a pointer to any other resource that might be able to help me with this.
Many thanks in advance!
With kind regards,
Tom van der Geer