如何从Java文件中调用PHP类成员函数?
问题描述:
我正在使用PHP / Java桥在Tomcat服务器上运行PHP脚本。有人能指出我如何从Java文件调用我的PHP脚本的示例。
I am using PHP/Java bridge to run PHP scripts on the Tomcat server. Can someone point me to an example as to how to call my PHP scripts from a Java file.
<?php
class X{
//variables
//functions
}
?>
现在我想通过Java文件使用其对象来调用类X的成员函数。我该怎么做呢?我想使用Java文件实现多线程并在单独的线程上调用多个PHP函数。
Now I want to call the member functions of class X using its object via a Java file. How do I do this? I want to implement multithreading using the Java file and call multiple PHP functions on separate thread.