2

Can someone help me with integration Java Expert System Shell with php? I just want to execute some jess file (.clp) in php code, but I'm not sure if this is possible. I'm not an expert of php neither jess.

Aqff
  • 21
  • 1
  • More informations: – Aqff Dec 15 '16 at 19:48
  • More informations: I'm trying to implement a web based expert system. I've written the code on clips, but the program has to run from the command line. Also my goal is to get input from a html form, assert the input as a fact, run java expert system with new facts, and display results on the form. – Aqff Dec 15 '16 at 19:51
  • Well, it'd be a heck of a lot easier if your web site were coded in Java; you could then simply use Jess's well-documented Java API. From PHP, using Jess will be just as difficult as using CLIPS: you're running an external program written in a different language. – Ernest Friedman-Hill Dec 15 '16 at 23:32
  • You might implement a Java application running Jess (as Ernest suggested) as a server, send requests from the PHP client, return results for displaying in the client. – laune Dec 16 '16 at 04:11
  • @ErnestFriedman-Hill Ok. Can you also tell me, it would be easier to implement java application running jess as a server and interact it with CMS(Magento) or implement whole web shop & jess application in spring? – Aqff Dec 16 '16 at 08:07
  • You are asking for decisions that require detailed knowledge of the business application you are planning to build. Also note that Jess is not open source, so you/your customer(s) may have to buy (a) license(s). – laune Dec 16 '16 at 08:18

0 Answers0