My first idea is to try and get a PROLOG interpreter that can work in a pipe, i.e. read the code from STDIN and write the program output to STDOUT (like php, perl, python, ...). Any that is available for unix
should
do the trick.
Then you can use popen() to run the interpreter in a sub-process from php, send input via fwrite() and read the output with fread().
I would not try to abstract the proof/goal part, instead create PROLOG code directly in php and write it to the pipe for execution.
The Flash applet can query the php pages then. These will run the PROLOG interpreter to evaluate the data sent from the Flash applet and return the results to the Flash applet for displaying.
Database? Not necessary so far 
Hope this helps for a rough starting point,
M. |