Discussion Locked

I wanna use Prolog in a Web application

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is the easiest way to use Prolog in a Web application, I'm plannint to make a tow players game in a new web site I'm going to create.

1 reply

by jay eckles

If Prolog can read from STDIN, write to STDOUT, and has access to the system's environment variables, then you could write a CGI using Prolog.

If not, you could always write a CGI in some other language (Perl, C, whatever) that calls or interacts with the Prolog program. This is what CGI was originally for - interacting with programs on a system through the web. (that's the Gateway in Common Gateway Interface).

Good luck.

Jay

This discussion is closed to new replies.