0

I'm interested in running a PHP web application using Quercus in a way similar to:

java -classpath ... com.example.LaunchPHP {php folder}

All the documentation I could find on Quercus was related to running from Resin, but this is something I want as simple as possible, for running from a CI build.

What possibilities are there?

2 Answers 2

1

Would it be easier to open a URLConnection and hit the PHP page through the web server?

Sign up to request clarification or add additional context in comments.

1 Comment

My setup is such that I can't guarantee access to a web server like Apache - but I can control the Java part.
0

Digging through the QuercusServlet source, it appears that you would need to call Quercus.parse to get a QuercusPage on which you could call execute. I suspect there's some more setup you'd have to do first (like initializing php.ini values), but I think reading through the QuercusServlet source should send you in the right direction.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.