Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对使用Quercus以类似于以下方式运行 PHP Web 应用程序感兴趣:
java -classpath ... com.example.LaunchPHP {php folder}
我可以在 Quercus 上找到的所有文档都与从 Resin 运行有关,但这是我想要的尽可能简单的东西,用于从 CI 构建运行。
有哪些可能性?
打开 URLConnection 并通过 Web 服务器访问 PHP 页面会更容易吗?
挖掘QuercusServlet源代码,您似乎需要调用Quercus.parse才能获取QuercusPage可以调用的execute. 我怀疑您必须首先进行更多设置(例如初始化 php.ini 值),但我认为阅读QuercusServlet源代码应该会让您朝着正确的方向前进。
QuercusServlet
Quercus.parse
QuercusPage
execute