> Although I've never used Gambas for a website,
> And I would like to soon...
> It would be something like this:
>
> Apache would have to be configured to invoke Gambas when Apach found
> a particular suffix.
> Example: a webpage ending in .php Apache knows to invoke PHP processor
> If you set Apache to detect (for example) .gb, it would then invoke Gambas
> and pass the the name (ie) foo.gb to Gambas to run.
> You name all your Gambas scripts to whatever.gb
> Print to Gambas standard out which Apache catches and sends back to the
> client.
>
> Now...the details...
>
> Someone, please correct me if I am wrong.
> -Fernando
>

Just install a Gambas executable as CGI script, and use the gb.web component. 
You will get methods from the gb.web component to get the request and create 
the HTTP response header. You send the response contents by using the PRINT 
instruction.

Regards,

-- 
Benoît

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to