-2

Possible Duplicate:
Make PHP execute and communicate with a Java application on a web server

I want to use http://code.google.com/p/zxing/ in my PHP web application. How do I do I do this since zxing is in Java?

I downloaded this: http://code.google.com/p/zxing/downloads/detail?name=ZXing-1.7.zip&can=2&q= and noticed there is a C++ version (I think it's a partial port). Does that help me?

Community
  • 1
  • 1
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
  • 1
    possible duplicate of http://stackoverflow.com/search?q=php+java+bridge – Gordon Oct 26 '11 at 10:36
  • *WAAAY* too non-specific this question - what do you want to do with it? Where is your data coming from? How do you intend to pass it from PHP to Java? Do you have *any* idea where to start with this? If not, I suspect you need to do some serious private reading, or just abandon the idea completely. I also can't help thinking that whatever you are doing, if it involves reading barcodes, you would be better doing the whole thing in Java, or a C variant - certainly not PHP, which was designed primarily for WWW applications... – DaveRandom Oct 26 '11 at 10:39
  • The question is purposely non-specific. Ultimately, I want to know how to use Java from PHP -- or how to take the C++ port and use it as an extension in PHP. It's a question that not only applies to ZXing. – StackOverflowNewbie Oct 26 '11 at 10:41
  • You should spend some love to your question, so it's more clear what you're looking for firsthand. E.g. which Java standard are you looking for? What have you tried so far? Is it generally clear to you that PHP can not execute Java code? – hakre Oct 26 '11 at 10:42

1 Answers1

0

Try PHP Java PECL extension (PHP 4 only, no binaries available, source missing) which might not be helpful in any direction as you will need to research back and forth to get this to working finally (as the software is missing on quick sight).

There is a PHP Java Bridge as well.

hakre
  • 193,403
  • 52
  • 435
  • 836
Ali Nouman
  • 3,304
  • 9
  • 32
  • 53