[ Jocelyn Ireson-Paine's Home Page | How to Call SWI-Prolog from PHP ]

Calling SWI-Prolog from PHP

  system( $cmd );
 
  $output = exec( $cmd );
  echo $output;
 
  exec( $cmd, $output );
  print_r( $output );
 
  $output = shell_exec( $cmd );
  echo $output;