1

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   

 }

?>

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.

2 Answers 2

2

Maybe JPHP is what you are looking for?

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

Comments

1

Found an example here -

http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=PhpThreads.java

Couldn't make out much though

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.