I am taking the result from Prolog to PHP and I want to send it to Android as a string ($output
).
Any idea what I must write to Android? And should I change my PHP code? This is my PHP code:
<?php
$cmd = "\"c:/program files/swipl/bin/swipl.exe\" -f my_project.pl -g
\"prove([activity(X)],D),writeln(X),write(D),halt\"";
$output = shell_exec($cmd);
print_r($output);
?>
print_r($output)
is printed this result which is correct, is what I want:
walk [nott(rec_walk),pr7,rec_walk,weatherrr(good),a3(walk)]