Paul, Take a good look at the small wiki example. Also read up on common gateway interfaces. CGI is just a standard method of talking to the webserver. Basically, when a web request is made, the server looks for the script or program to run and it's interpreter. The server has to be configure for this... With Apache it is simple to set this up. But if I recall correctly, I had to create a link to the gambas interpreter, calling it directly didn't work. This may have been an issues with user rights. I don't recall. However the Gambas IDE includes a simple webserver already setup for testing your application. Go to Project > Properties > Options and make sure "Use embedded HTTP server" is set to "yes". Then when you click run, your app will be served by the ide's webserver and will open in a browser.
the plain vanilla description of cgi is that the server looks for the scripts output on the stdio (standard output). So basically, if you run the app without a webserver you would expect to see the page content of your request in text form. Not the rendered page. Cgi is much more complex than this and it pays to read up on it... The hour or two researching cgi will pay off in the long run. Hope this helps.... On Thu, May 29, 2014 at 9:47 AM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Le 29/05/2014 18:08, paulwheeler a écrit : > > I am working with the WebBrowser example, and understand how to go to a > particular web site based on the text.url box. > > However, I want the program to run a custom web page. According to the > documentation, I need to create file with a .webpage > > extension. Where should that file be put? Also, how do I get the > program to run that file by default? > > > > paul > > > > Before everything else, you must know how a CGI script works. Do you? > ("webpage" files will just help you to do that). > > -- > Benoît Minisini > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user