Re: [fpc-pascal] fpc-passrc expression parser (issue #16914)

2010-07-13 Thread Michael Van Canneyt
On Tue, 13 Jul 2010, dmitry boyarintsev wrote: Hello, Michael Van Canneyt, Sorry, I can't write to the resolved issue (without re-opening) it. - better class tree (split out binary/unary/primitive operators in subclasses) These may break backwards compatiblity; if you prefer to do them

[fpc-pascal] fpweb tutorial

2010-07-13 Thread Felipe Monteiro de Carvalho
Hello, Does anyone know where I can find documentation or a tutorial about fpweb? Also, is the version included in FPC 2.4.0 very old and I should really use the FPC SVN code or can I use the units that come with FPC 2.4.0? I want to make a simple page which converts hexadecimal to a string. I

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Luiz Americo Pereira Camara
Felipe Monteiro de Carvalho escreveu: Hello, Does anyone know where I can find documentation or a tutorial about fpweb? http://blog.silvioprog.com.br/2010/06/criando-um-aplicativo-cgi-com_27.html It's in portuguese Luiz Also, is the version included in FPC 2.4.0 very old and I should

Re: [fpc-pascal] writeln: FPC runtime race conditions in external C threads

2010-07-13 Thread Alexander Grau
Am 12.07.2010 um 22:58 schrieb Jonas Maebe: Alexander Grau wrote on Mon, 12 Jul 2010: Am 12.07.2010 um 22:31 schrieb Jonas Maebe: I forgot to mention: before this works, you have to create at least one thread using the FPC RTL in order to initialise the threading subsystem. It can be

[fpc-pascal] Thanks for an awesome tip: -Ur = create release units

2010-07-13 Thread Tobias Giesen
Hello, thanks to Jonas for this tip in April! This command line switch can really solve some recompiling problems: -Ur (= create release units) I had the problem Recompiling XYZ, checksum changed for ZZZ when recompiling Lazarus with my component package. It's now solved. For the benefit of

Re: [fpc-pascal] Search Engine friendly CGI web apps and pages

2010-07-13 Thread Michael Van Canneyt
On Tue, 13 Jul 2010, Graeme Geldenhuys wrote: Op 2010-07-13 15:21, Michael Van Canneyt het geskryf: When using cgi or FastCGI, the PATHINFO environment variable contains the /myaction part - in fact, it contains whatever the server finds after the path to the CGI app. Thanks Michael. I

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Felipe Monteiro de Carvalho
Hello, Thanks, with this blog I seam to be going somewhere and it worked ok with fpc 2.4.0 and the weblaz.lpk package. One thing still: Is there support for templates? I am doing something like this to load my page: procedure TFPWebModule1.DataModuleRequest(Sender: TObject; ARequest: TRequest;

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Felipe Monteiro de Carvalho
Ah ... I see that you can just use Format for that ... And what about reading a GET input =D Any ideas how to do that? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Search Engine friendly CGI web apps and pages

2010-07-13 Thread Graeme Geldenhuys
On 13 July 2010 16:23, Michael Van Canneyt wrote: Well, to make things more complicated, newer apache servers allow to disable PATH_INFO passing to CGI scripts alltogether. I guess it is to protect against search engines flooding the CGI scripts. Exactly the opposite of what you want to

Re: [fpc-pascal] Search Engine friendly CGI web apps and pages

2010-07-13 Thread Felipe Monteiro de Carvalho
In the standard Apache setup it will thread anything you put in the cgi-bin directory regardless of the extension as a cgi program. The path to this is set in httpd.conf here: # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Michael Van Canneyt
On Tue, 13 Jul 2010, Felipe Monteiro de Carvalho wrote: Hello, Thanks, with this blog I seam to be going somewhere and it worked ok with fpc 2.4.0 and the weblaz.lpk package. One thing still: Is there support for templates? I am doing something like this to load my page: procedure

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Michael Van Canneyt
On Tue, 13 Jul 2010, Felipe Monteiro de Carvalho wrote: Ah ... I see that you can just use Format for that ... And what about reading a GET input =D Any ideas how to do that? Well, Request.Variables['Myvar'] is enough, no ? Michael. ___

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Marcos Douglas
On Tue, Jul 13, 2010 at 11:47 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: (...) Something like powutils templates would be extremely handy ... all that html mixed with pascal doesn't look very nice. Read fpc/packages/fcl-web/fptemplate.txt MD.

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Felipe Monteiro de Carvalho
On Tue, Jul 13, 2010 at 5:10 PM, Michael Van Canneyt mich...@freepascal.org wrote: Well, Request.Variables['Myvar'] is enough, no ? Doesn't seam to exist in fpc 2.4.0, any idea how to do that with that version? I found a couple of stuff which didn't work, including: Request.GetFieldByName();

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Michael Van Canneyt
On Tue, 13 Jul 2010, Felipe Monteiro de Carvalho wrote: On Tue, Jul 13, 2010 at 5:10 PM, Michael Van Canneyt mich...@freepascal.org wrote: Well, Request.Variables['Myvar'] is enough, no ? Doesn't seam to exist in fpc 2.4.0, any idea how to do that with that version? I found a couple of

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread ABorka
/lazarus/components/fpweb/demo/fptemplate/*.* has examples of how to use templates and template tags. On 7/13/2010 07:47, Felipe Monteiro de Carvalho wrote: Hello, Thanks, with this blog I seam to be going somewhere and it worked ok with fpc 2.4.0 and the weblaz.lpk package. One thing still:

Re: [fpc-pascal] fpweb tutorial

2010-07-13 Thread Michael Van Canneyt
On Tue, 13 Jul 2010, Felipe Monteiro de Carvalho wrote: By the way, is there a page in the wiki about fpweb? I used the wiki search and found none. I would like to add this info to the wiki, but thought about asking if there is already a page about it (the wiki search isn't very reliable).

Re: [fpc-pascal] Search Engine friendly CGI web apps and pages

2010-07-13 Thread Zaher Dirkey
On Tue, Jul 13, 2010 at 5:54 PM, Graeme Geldenhuys graemeg.li...@gmail.comwrote: While we are on the topic of CGI and Apache. Any idea how to tell Apache that a specific file is a CGI program, even though that file has no file extension like the obvious .cgi suffix? This is not to serious -

Re: [fpc-pascal] fpc-passrc expression parser (issue #16914)

2010-07-13 Thread Paul Nicholls
- Original Message - From: Michael Van Canneyt mich...@freepascal.org To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Tuesday, July 13, 2010 6:42 PM Subject: Re: [fpc-pascal] fpc-passrc expression parser (issue #16914) On Tue, 13 Jul 2010, dmitry boyarintsev