Launching and running programs written for Prolog in php

Let’s say I have a program written in Prolog, is it possible to somehow run/execute it using php?

I have a Linux server.

Answer 1, authority 100%

Something like this (using swipl as an example)

$prolog = "swipl -f -g goal,halt -t 'halt(1)'";

Answer 2, authority 100%

Standard functions for launching external programs:
Control functions: program launch functions