I'm trying to launch SWI-Prolog in php by using exec() function... and with no results. Here's how it looks:
prolog file test.pl
Code: Select all
test :- write('Test complete').Code: Select all
exec('c:\\Program Files\\prolog\\bin\\plwin -L128k -G128k -T128k -A128k -f c:\\Program Files\\prolog\\files\\test.pl -g test,halt', $result2);
print_r($result2);"-g test,halt" executing 'test' predicate and stopping
as a result i get " Array() "
Thx for any help!