Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1088559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:05:09+00:00 2026-05-16T23:05:09+00:00

Is it possible to somehow use some of the PHP classes that come with

  • 0

Is it possible to somehow use some of the PHP classes that come with Zend in a Java project? I’d like to think that there’s always a way, but how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:05:09+00:00Added an answer on May 16, 2026 at 11:05 pm

    Question you should ask yourself first

    First some questions you should ask your self, which could help use give you the best answer(because programming is a lot of times about trade-offs):

    • Can you run PHP code natively:
      If it is not possible to run PHP code natively via (http/CLI) then your only option would be to try if Quercus does the job.

    • How much concurrency does PHP have:
      Let’s assume you don’t call PHP much. Then I would consider writing a simple webservice(see below)because this is the easiest to implement. If not a PHP deamon which is running in the background waiting for work(PHP) to process which it receives from java message queue(deamon), and sends the message to queue.

    • How quickly should PHP respond to java:
      If quick then a daemon would be the way to go.

    But I would first advice try to implement the easiest/quickest solution and benchmark it. The quickest solution could be written in a couple of minutes. The more difficult could take some time.

    Solutions:

    • Quercus: If you can’t run PHP natively(CLI/HTTP) then this is your only option.
    • Simple webservice:
      let’s say you call http://localhost:8181/zend/doZend.php?a=a&b=b from within your Java program. This would call:

      1. doZend function with function parameters a&b from your corresponding PHP service
      2. return results to Java program which called PHP service.
    • A named pipe could also be quick/easy solution if you are in *nix. I assume this would out perform I think the queue part would perform better under high load, but this one is easier to implement.
    • MessageQueue in java/C: write a PHP deamon which reads from a queue(redis blocking list pop(*nix)/write your own java version) and puts the answer on another blocking queue from which your Java program will read the answer when available. This option is a little bit hard to implement, but if scaling is a must I think this is the way to go. The redis part could(If not possible to compile it) also be replaced by a simple java deamon which only does have a blocking queue if desired. But the redis variant is really fast/stable and I would really go with that.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to somehow use a .bat file to script the schema and/or
Is it possible somehow to close StreamReader after calling ReadToEnd method in construction like
Is it somehow possible on Swing to set a TitledBorder transparent so that a
I'm wondering, is it possible to somehow map a key-press event to act like
Is it possible to request some data in a Flash movie from PHP at
I'm doing something in Java SE that would require me to use SSL in
Some commands that I use display colors, but when I use them with watch
I have some small python apps that use cx_Oracle to connect to an Oracle
I have few own APIs with around 2000 classes overall. Some of them use
is it somehow possible to call a rails function or to access a rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.