How to send messages from PHP application to Java application without creating webservices?
One possible solut开发者_如何转开发ion could be simple HTTP get or post request, but that wouldn't be secure.
You can integrate Java and PHP with PHP-modules; http://php.net/manual/en/book.java.php
(Given that they are on the same machine)
One possible solution could be simple HTTP get or post request, but that wouldn't be secure.
Why not? Do it over HTTPS and have the web service only accept connections from known IPs or via specific API keys. If a HTTPS POST request is acceptable for processing credit cards (it is), it's good enough for your app.
Maybe we need some more information about your problem.
One possible solution is Zend Java Bridge (http://files.zend.com/help/Zend-Server-Community-Edition/zendjbridge.html).
If PHP and Java are in different machines, please let us know why web services are not a good solution. In that case, Java RMI in combination with Zend Java Bridge would be useful.
An http***s*** post connection would be secure. There are many ways to affect the authentication, but this is the basic idea behind the REST concept.
This is commonly done in credit cards, as well as Amazon web service and others. You can look at those for ideas.
One possible solution could be simple HTTP get or post request, but that wouldn't be secure.
What do you base this premise on?
If both ends are on an internal network, it's perfectly safe.
精彩评论