Connecting Prolog File with PHP file -


i have prolog code data.pl, , need use php file. search in internet, found this:

exec('start <path/to/prolog> -f data.pl -g elem(a,[a,b])', $output) 

i've tried shell-exec() , system() commands, not work either. i've tried correct directory paths, , move data.pl path/to/prolog folder, , still no result. can me on issue?

a better approach integrating web application prolog application can using swi's built-in http server. spare need load prolog , parse input file every call. provides more web-ish integration, can use ajax , similar approaches.

if insist on invoking prolog executable php runtime env., you'll have provide more details. errors in php logs? have checked file permissions? did try giving full paths both prolog executable , data file? saying "it doesn't work" statement, not question.

finally, efficiency issues, advisable compile prolog data file quick load format (qlf) instead of re-parsing each request.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -