[Solar-talk] clarion web server

Andreas Ravnestad andreas.ravnestad at gmail.com
Wed Sep 5 03:38:49 CDT 2007


Jeff Surgeson wrote:
> Hi All
>
> A bit off topic but I thought I would ask here because if I can answer this 
> question for a friend I will pick up his web app work which I would use Solar 
> as my base, after all you are the brightest people I know :-)
>
> He is a Clarion programmer and has a custom security monitoring package which 
> he has developed over the last 15 years,  which runs on XP.
>
> He has written a custom Clarion web server which his monitoring package runs 
> on. He would like to be able to make use of php but is trying to find info on 
> how to hook into the php-cgi.exe and process php calls. So all he needs to do 
> is when his web server receives a request for index.php to identify that, 
> pass it to the php executable for parsing / processing and return the html to 
> his web server?
>
> I know the simple answer is install Apache or IIS but he wants full control 
> for what ever reason.
>
> Does anyone have any idea of where I can find info on how to configure a 
> custom web server to run php5?
>   


Hi!

Your friend needs to implement the CGI protocol, which is more than 
often a quite easy task. It's a matter of opening a standard 
input/output stream to php-cgi.exe and piping the verbatim request from 
the client to it, and displaying the result returned from the process. 
Also, it is required to set som environmental variables.

The protocol is described here: http://hoohoo.ncsa.uiuc.edu/cgi/  It's 
pretty easy stuff, and I wouldn't be surprised if anyone has already 
written something like this for Clarion.

-Andreas


More information about the Solar-talk mailing list