i have a site made using PHP and backend mysql. There is a prolog file (.pro extension) which I would like to integrate with this site.
My prolog source file can be queried like this -
myprolog(Input, Output).
So I give prolog Input, and it returns its result by binding it to Output.
I am expecting one of my php pages, says callprolog.php to query this prolog source file by passing the Input
, and then store the result from Ouput
into a php variable for further processing.
Implementations - PHP 5, MySQL, SWI Prolog.
Please let me know how to establish this connection betwen the php file and prolog source, pass/get data to/from prolog/php file.
Thank you!