Recent

Author Topic: CGI - Example anyone?  (Read 7508 times)

grl

  • New Member
  • *
  • Posts: 41
CGI - Example anyone?
« on: April 15, 2007, 11:03:55 pm »
I'm searching for an example-CGI done with Lazarus.

Only examples I could find where using PSP, which I don't want to use as I don't want to have a config-file near my CGI in this special situation.

Could anyone provide an Example of a simple CGI getting some values out of a form and processing an output?

regards
Lukas

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: CGI - Example anyone?
« Reply #1 on: April 16, 2007, 07:16:37 pm »

RudieD

  • Full Member
  • ***
  • Posts: 234
RE: CGI - Example anyone?
« Reply #2 on: April 16, 2007, 08:50:39 pm »
Have a look at <http://z505.com/cgi-bin/PasForum/index.psp>
The FRED Trainer. (Training FRED with Lazarus/FPC)

grl

  • New Member
  • *
  • Posts: 41
RE: CGI - Example anyone?
« Reply #3 on: April 17, 2007, 05:59:23 pm »
Thanks for your answer, RudieD, but as I said before PSP is not an option.

After a close look at cgimodules.pas I think there is some logic problem in this source.

Anyone a quick tip, who maintains this code and if anyone is activly working on it? If there is no one I would make a fix myself.

Regards
Lukas

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: CGI - Example anyone?
« Reply #4 on: April 18, 2007, 01:34:03 pm »
Michael van Canneyt maintains this code. He can be reached through the Lazarus mailing list.

grl

  • New Member
  • *
  • Posts: 41
RE: CGI - Example anyone?
« Reply #5 on: April 18, 2007, 02:54:11 pm »
Thx@Vincent

dblaszijk

  • New Member
  • *
  • Posts: 15
CGI - Example anyone?
« Reply #6 on: May 10, 2007, 11:50:10 pm »

L505

  • New Member
  • *
  • Posts: 10
config file requirements
« Reply #7 on: June 28, 2007, 04:50:13 am »
Quote

Only examples I could find where using PSP, which I don't want to use as I don't want to have a config-file near my CGI in this special situation.


I would have gladly implemented a NO CONFIG file option for you .. :-)

Actually I already did:
On latest SVN, PSP does not require a Config file if you turn the CONFIG_ON define off. This will be released in version 1.6.1
(note: version 1.6.0.1 is different than version 1.6.1)

Previous versions released require the config file be in a global location, or local near the CGI file.

Other notes:
On latest SVN you can also disable Sessions by not enabling the SESSION_ON define, and you can enable/disable verbose debugging too. The current executable size with all defines OFF is about 47KB, whereas older versions of PSP were over 200KB default.

 

TinyPortal © 2005-2018