Discussions related to Visual Prolog
vjoer
Posts: 18
Joined: 7 Feb 2006 13:42

VIP and web applications

Unread post by vjoer »

Hello

I am trying to understand how to open VIP applications to the web technologies.

I considered the CGI approach where the web pages would make requests to the VIP executable and this will return the page to display. Or even an executable called by the PHP code on the server and returning the data back to the php server.
But these approaches imply a short life of the executable (the second request will re-call the executable) and so are suitable for simple tasks. In the case of a VIP executable that loads large data and where the goal is reached sequentially, one might want this process to live longer until the complete task, probably from multiple requests, is achieved.
I then considered the file communication between the executable started on the server and the web server (PHP). In case it is possible to have an executable instance running in the background for long time, it could communicate with the php server via files: the php send requests and the VIP exe returns the data using files. This requires that both parts monitor somehow the message files to get the updated info.
However, this approach may not be fast as the monitoring interval may not be on every second.

Have you considered other solutions for exposing the VIP programs to the web?

Regards
Viorel Farcas
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: VIP and web applications

Unread post by Thomas Linder Puls »

See WEB services and the webService examples in the Commercial Edition examples.
Regards Thomas Linder Puls
PDC
Post Reply