Re: [fpc-pascal] CGI with datamodule does not work

2019-02-27 Thread AB
Indeed, this has fixed it. Thank you guys. AB On 2/27/19 12:16 AM, Michael Van Canneyt wrote: On Tue, 26 Feb 2019, AB wrote: Hi Guys, I have tried to update my old web project that is in maintenance mode since a few years now, using the latest stable Lazarus/FPC, and fcl-web just does

Re: [fpc-pascal] CGI with datamodule does not work

2019-02-27 Thread Michael Van Canneyt
On Tue, 26 Feb 2019, AB wrote: Hi Guys, I have tried to update my old web project that is in maintenance mode since a few years now, using the latest stable Lazarus/FPC, and fcl-web just does not want to work (Tried Lazarus 1.8.4/FPC 3.0.4, Lazarus 2.0.0/FPC 3.0.4 with Apache 2.4, on Linux

Re: [fpc-pascal] CGI with datamodule does not work

2019-02-26 Thread Sven Barth via fpc-pascal
Am 27.02.2019 um 01:42 schrieb AB: Hi Guys, I have tried to update my old web project that is in maintenance mode since a few years now, using the latest stable Lazarus/FPC, and fcl-web just does not want to work (Tried Lazarus 1.8.4/FPC 3.0.4, Lazarus 2.0.0/FPC 3.0.4 with Apache 2.4, on Linu

[fpc-pascal] CGI with datamodule does not work

2019-02-26 Thread AB
Hi Guys, I have tried to update my old web project that is in maintenance mode since a few years now, using the latest stable Lazarus/FPC, and fcl-web just does not want to work (Tried Lazarus 1.8.4/FPC 3.0.4, Lazarus 2.0.0/FPC 3.0.4 with Apache 2.4, on Linux x86_64, though the OS should not

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread Marcos Douglas B. Santos
On Thu, Jan 4, 2018 at 10:33 PM, leledumbo via fpc-pascal wrote: >> The problem is that the WS could take so long time that the entire request > will broke with a "time out". > > I suggest making the request handling asynchronous instead. So request will > only register and return some unique id t

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread Marcos Douglas B. Santos
On Thu, Jan 4, 2018 at 6:33 PM, Michael Van Canneyt wrote: > > If you use a thread to consume it, yes. > > Without more info on how you consume this webservice, it's difficult to > answer this. Yes, sorry. I should explained more. I'm using WST -> http://svn.code.sf.net/p/lazarus-ccr/svn/wst (rev

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread leledumbo via fpc-pascal
> The problem is that the WS could take so long time that the entire request will broke with a "time out". I suggest making the request handling asynchronous instead. So request will only register and return some unique id to the requester, then do call to the WS in background thread. An endpoint

Re: [fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread Michael Van Canneyt
On Thu, 4 Jan 2018, Marcos Douglas B. Santos wrote: Hi, I have a FastCGI application which needs to receive an user request but, in some cases, the app should consume a WebService(WS) before make the response to the user. The problem is that the WS could take so long time that the entire requ

[fpc-pascal] CGI/FastCGI and WS request with a max time response

2018-01-04 Thread Marcos Douglas B. Santos
Hi, I have a FastCGI application which needs to receive an user request but, in some cases, the app should consume a WebService(WS) before make the response to the user. The problem is that the WS could take so long time that the entire request will broke with a "time out". My question is: Can I

Re: [fpc-pascal] CGI, Handle Exceptions

2016-07-21 Thread Marcos Douglas
On Wed, Jul 20, 2016 at 10:40 PM, leledumbo wrote: > > > I need to know the Request instance too, to treat the exception properly. > > As Michael has pointed out, the current design has no access to the TRequest > instance. My alternative solution would be to create descendant Exception > class th

Re: [fpc-pascal] CGI, Handle Exceptions

2016-07-20 Thread leledumbo
> I need to know the Request instance too, to treat the exception properly. As Michael has pointed out, the current design has no access to the TRequest instance. My alternative solution would be to create descendant Exception class that has Request property. For every exception you raise deliber

Re: [fpc-pascal] CGI, Handle Exceptions

2016-07-20 Thread Marcos Douglas
On Wed, Jul 20, 2016 at 12:40 PM, Michael Van Canneyt < mich...@freepascal.org> wrote: > > > On Wed, 20 Jul 2016, Marcos Douglas wrote: > > Hi, >> >> Is possible to get all exceptions in one place, in a CGI/FastCGI programs? >> >> I need to know the Request instance too, to treat the exception pro

Re: [fpc-pascal] CGI, Handle Exceptions

2016-07-20 Thread Michael Van Canneyt
On Wed, 20 Jul 2016, Marcos Douglas wrote: Hi, Is possible to get all exceptions in one place, in a CGI/FastCGI programs? I need to know the Request instance too, to treat the exception properly. No, you cannot. You can override Application.ShowException, but then you do not know the curr

[fpc-pascal] CGI, Handle Exceptions

2016-07-20 Thread Marcos Douglas
Hi, Is possible to get all exceptions in one place, in a CGI/FastCGI programs? I need to know the Request instance too, to treat the exception properly. Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fr

[fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread Christian Kranich
Hello Michael, Hello Leonardo, Thx for further suggestions: - I did this already (starting from commandline): In windows it came with an exception (like in leonardo's post) Under Linux it returns w/o _any_ output (not even an errormessage) At first I suggested any not compatible unit and com

[fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread Christian Kranich
Michael, Thank you for the fast response! and Many thanks for the _lots_ of work you have done for the project!! (Have the Lazarus and FPC books asside, but want to use the first direct contact for a BIG thank you...) The apache error log said Premature end of script headers (because the script

Re: [fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread michael . vancanneyt
PC-Pascal users discussions Sent: Wednesday, April 4, 2012 8:42 AM Subject: Re: [fpc-pascal] CGI under Linux using FCL-Web On Wed, 4 Apr 2012, Christian Kranich wrote: Hello All, I just started to use FPC in  a project requiring a Webinterface. When porting the Lazarus/Win32 fpc-web exampl

Re: [fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread Leonardo M . Ramé
t.com > > From: "michael.vancann...@wisa.be" >To: FPC-Pascal users discussions >Sent: Wednesday, April 4, 2012 8:42 AM >Subject: Re: [fpc-pascal] CGI under Linux using FCL-Web > > > >On Wed, 4 Apr 2012, Christian Kranich wrot

Re: [fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread michael . vancanneyt
On Wed, 4 Apr 2012, Christian Kranich wrote: Hello All, I just started to use FPC in a project requiring a Webinterface. When porting the Lazarus/Win32 fpc-web examples (worked fine) to X86/Linux(Ubuntu) and Arm-Linux, I started to struggle. Under Linux, the cgi program terminates w/o any o

[fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread Christian Kranich
Hello All, I just started to use FPC in a project requiring a Webinterface. When porting the Lazarus/Win32 fpc-web examples (worked fine) to X86/Linux(Ubuntu) and Arm-Linux, I started to struggle. Under Linux, the cgi program terminates w/o any output and w/o any errormessages. So Apache complai

Re: [fpc-pascal] CGI JSON RPC

2011-12-01 Thread michael . vancanneyt
On Wed, 30 Nov 2011, Dimitrios Chr. Ioannidis wrote: Hi all, i surely need some help regarding the use of cgi with json rpc. I looked at the demo1 example and tested it with testcgi app from the command line. All was fine. Then i tried to run the demo1 cgi app from apache with a php json

[fpc-pascal] CGI JSON RPC

2011-11-30 Thread Dimitrios Chr. Ioannidis
Hi all, i surely need some help regarding the use of cgi with json rpc. I looked at the demo1 example and tested it with testcgi app from the command line. All was fine. Then i tried to run the demo1 cgi app from apache with a php json rpc client. It seems that i can't find the right uri t

Re: [fpc-pascal] CGI under Freepascal

2011-10-18 Thread Graeme Geldenhuys
On 18/10/2011 16:51, Michael Van Canneyt wrote: > > You can always search for powtils, but as far as I know it is unmaintained. I use powtils (aka pwu), and it works very well. We have 3 CGI apps developed with powtils, connecting to a database backend etc. It is easy to use and relatively easy

Re: [fpc-pascal] CGI under Freepascal

2011-10-18 Thread Michael Van Canneyt
On Tue, 18 Oct 2011, Luciano de Souza wrote: Hello listers, I am trying to use CGI with Pascal. I don't have background in web development, but principles of CGI seems to be simple. [snip] The variety of projects under Freepascal is so big that I will be not surprised with other solu

Re: [fpc-pascal] CGI under Freepascal

2011-10-18 Thread Felipe Monteiro de Carvalho
I think that fpweb is the best option, since most people seam to be using it. But the wiki has an example about how to do a more simple CGI app: http://wiki.lazarus.freepascal.org/CGI_Web_Programming The provided minimal example teaches all the basics. -- Felipe Monteiro de Carvalho __

[fpc-pascal] CGI under Freepascal

2011-10-18 Thread Luciano de Souza
Hello listers, I am trying to use CGI with Pascal. I don't have background in web development, but principles of CGI seems to be simple. The first way could be FPWeb. However, I prefer another solution even if it is the best bet. It requires complex compilations and configurations since it's

Re: [fpc-pascal] CGI file upload

2010-05-24 Thread Vannus
> > There is an example project (CGI and Apache mod) in Lazarus under > /components/fpweb/demo/fptemplate/fileupload/ you can use. > > AB > > Cheers, it turned out to be the HTML form needed 'enctype' which i've never seen before. Upload File: - V

Re: [fpc-pascal] CGI file upload

2010-05-24 Thread ABorka
On 5/23/2010 08:57, Vannus wrote: How do you get cgi uploads to work?? Im using TModuledCGIApplication procedure TCGIDatamodule1.DataModuleCGIRequest(Sender: TObject); begin // upload handling writeln('filenamevar: '+application.requestvariables['file']+''); // works when get but post is

[fpc-pascal] CGI file upload

2010-05-23 Thread Vannus
How do you get cgi uploads to work?? Im using TModuledCGIApplication procedure TCGIDatamodule1.DataModuleCGIRequest(Sender: TObject); begin // upload handling writeln('filenamevar: '+application.requestvariables['file']+''); // works when get but post is just blank writeln('filenamefile: '

Re: [fpc-pascal] CGI application

2010-05-20 Thread Felipe Monteiro de Carvalho
Using powtils you can write something like the example bellow, which I consider cleaner and easier to maintain: From: http://code.google.com/p/powtils/source/browse/dev#dev/examples/raw-template program project1; {$IFDEF FPC}{$mode objfpc}{$H+}{$ENDIF} {$APPTYPE CONSOLE} uses pwinit, pwmain;

Re: [fpc-pascal] CGI application

2010-05-20 Thread Jorge Aldo G. de F. Junior
Try using powtils : http://z505.com/powtils/idx.shtml ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CGI application

2010-05-19 Thread Vannus
Thats me up & running now - thanks for your help guys, I'll certainly poke around those CGI vars. On 19 May 2010 14:19, Carsten Bager wrote: > > How do i get command line vars? i tried GetENV() but it didn't understand > GetEnv() (which unit is > > it in?) > > > Here is a small cgi program. Comm

Re: [fpc-pascal] CGI application

2010-05-19 Thread Carsten Bager
> How do i get command line vars? i tried GetENV() but it didn't understand > GetEnv() (which unit is > it in?) Here is a small cgi program. Comments are in Danish but I hope you can get the meaning. Carsten {Program version 1.00} program listdir2html; {LONGSTRINGS OFF} {$INFO +-

Re: [fpc-pascal] CGI application

2010-05-19 Thread Graeme Geldenhuys
Vannus het geskryf: > > How do i get command line vars? i tried GetENV() but it didn't understand > GetEnv() (which unit is it in?) ParamCount() and ParamStr() is part of the System unit, so is always available. GetEnvironmentVariable() is in the SysUtils unit. Note that CGI apps use a lot of

Re: [fpc-pascal] CGI application

2010-05-19 Thread Vannus
eh - im pretty sure im using ARequest and not AResponse (im on differnt pc just now, can't check) - but i'll definetly double check when i get back! How do i get command line vars? i tried GetENV() but it didn't understand GetEnv() (which unit is it in?) Cheers. On 19 May 2010 13:55, Graeme Geld

Re: [fpc-pascal] CGI application

2010-05-19 Thread Graeme Geldenhuys
Vannus het geskryf: > Can someone point me to how I can make a CGI app that outputs the fields in > the query? Think of CGI apps as simple Console applications (that's pretty much what they are). Everything after the ? is simply passed in as a parameter to your program. In it's simplest form you c

Re: [fpc-pascal] CGI application

2010-05-19 Thread Michael Van Canneyt
On Wed, 19 May 2010, Vannus wrote: This may not be the right place to ask, but I'm really stumped and would much prefer FPC over PHP. Can someone point me to how I can make a CGI app that outputs the fields in the query? ie. my.cgi?q=hello and my.cgi then outputs whatever q is? I'm using

[fpc-pascal] CGI application

2010-05-19 Thread Vannus
This may not be the right place to ask, but I'm really stumped and would much prefer FPC over PHP. Can someone point me to how I can make a CGI app that outputs the fields in the query? ie. my.cgi?q=hello and my.cgi then outputs whatever q is? I'm using Lazarus but the deprecated CGI doesn't h

Re: [fpc-pascal] CGI upload app

2009-07-01 Thread Graeme Geldenhuys
Vincent Snijders wrote: > > I wonder if Darius is still looking for an answer after more than 2 year > ... Well, in commercial terms (or like most companies here in RSA), that reply was instant! :-) Either way, it's good to know that you will get an answer in this mailing list, no matter how lo

Re: [fpc-pascal] CGI upload app

2009-06-30 Thread Vincent Snijders
FOFPC schreef: download the tool from http://fofpc.org/tools/ also library has some articles regarding your issue at 6-6-2007 19:23 Darius Blaszijk wrote: Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available? I wonder if Darius

Re: [fpc-pascal] CGI upload app

2009-06-30 Thread FOFPC
download the tool from http://fofpc.org/tools/ also library has some articles regarding your issue Darius Blaszijk wrote: > > Hi I would like to upload a file through a web page. How can I do this > using FPC? Is there any example available? > > Darius > ___

Re: [fpc-pascal] CGI upload app

2008-11-04 Thread Graeme Geldenhuys
On Tue, Nov 4, 2008 at 1:16 PM, Henry Vermaak <[EMAIL PROTECTED]> wrote: > i can see it here: > > http://powtils.googlecode.com/svn/dev/examples/upload-file/up.dpr Ah dope!!! Stupid me. I saw ".." and "up" and figured that's the web servers "browse a directory" auto generated interface. "up" bein

Re: [fpc-pascal] CGI upload app

2008-11-04 Thread Lukas Gradl
Graeme Geldenhuys schrieb: Hi Darius, Did you ever manage to get an example of uploading a file? I've got a CGI app based on Powtils or PSP or whatever it's called these days. My CGI app needs to permit uploading of files, but I got no idea how to do it. Regards, - Graeme - You just want t

Re: [fpc-pascal] CGI upload app

2008-11-04 Thread Henry Vermaak
2008/11/4 Graeme Geldenhuys <[EMAIL PROTECTED]>: > On 11/4/08, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: >> If you checkout Powtils from svn at http://powtils.googlecode.com/svn/dev >> you'll find an example inside examples/upload-file. >> > > Thanks, but all the example directories are empty. :

Re: [fpc-pascal] CGI upload app

2008-11-04 Thread Graeme Geldenhuys
On 11/4/08, Leonardo M. Ramé <[EMAIL PROTECTED]> wrote: > If you checkout Powtils from svn at http://powtils.googlecode.com/svn/dev > you'll find an example inside examples/upload-file. > Thanks, but all the example directories are empty. :-( Regards, - Graeme -

Re: [fpc-pascal] CGI upload app

2008-11-04 Thread Leonardo M . Ramé
;[EMAIL PROTECTED]> > Subject: Re: [fpc-pascal] CGI upload app > To: "FPC-Pascal users discussions" > Date: Tuesday, November 4, 2008, 5:45 AM > Hi Darius, > > Did you ever manage to get an example of uploading a file? > I've got a > CGI app based on Powtils or P

Re: [fpc-pascal] CGI upload app

2008-11-04 Thread Graeme Geldenhuys
Hi Darius, Did you ever manage to get an example of uploading a file? I've got a CGI app based on Powtils or PSP or whatever it's called these days. My CGI app needs to permit uploading of files, but I got no idea how to do it. Regards, - Graeme - On 6/6/07, Darius Blaszijk <[EMAIL PROTECTE

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Darius Blaszijk
Thanks to all for their help. For now I will stick to psp because I need it to work with 2.0.4. Darius Michael Van Canneyt wrote: On Tue, 5 Jun 2007, Darius Blaszijk wrote: Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available?

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Burkhard Carstens
Am Mittwoch, 6. Juni 2007 18:07 schrieb Michael Van Canneyt: > On Wed, 6 Jun 2007, Burkhard Carstens wrote: > > Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt: > > > On Tue, 5 Jun 2007, Darius Blaszijk wrote: > > > > Hi I would like to upload a file through a web page. How can I > > >

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Michael Van Canneyt
On Wed, 6 Jun 2007, Burkhard Carstens wrote: > Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt: > > On Tue, 5 Jun 2007, Darius Blaszijk wrote: > > > Hi I would like to upload a file through a web page. How can I do > > > this using FPC? Is there any example available? > > > > The fpw

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Burkhard Carstens
Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt: > On Tue, 5 Jun 2007, Darius Blaszijk wrote: > > Hi I would like to upload a file through a web page. How can I do > > this using FPC? Is there any example available? > > The fpweb or cgiapp components can do this for you. The README.TXT

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Michael Van Canneyt
On Wed, 6 Jun 2007, Joao Morais wrote: > Michael Van Canneyt wrote: > > > > On Wed, 6 Jun 2007, Burkhard Carstens wrote: > > > > > Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt: > > > > On Tue, 5 Jun 2007, Darius Blaszijk wrote: > > > > > Hi I would like to upload a file through

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Joao Morais
Michael Van Canneyt wrote: On Wed, 6 Jun 2007, Burkhard Carstens wrote: Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt: On Tue, 5 Jun 2007, Darius Blaszijk wrote: Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available? T

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Burkhard Carstens
Am Mittwoch, 6. Juni 2007 14:38 schrieb Michael Van Canneyt: > On Wed, 6 Jun 2007, Burkhard Carstens wrote: > > Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt: > > > On Tue, 5 Jun 2007, Darius Blaszijk wrote: > > > > Hi I would like to upload a file through a web page. How can I > > >

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Michael Van Canneyt
On Wed, 6 Jun 2007, Burkhard Carstens wrote: > Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt: > > On Tue, 5 Jun 2007, Darius Blaszijk wrote: > > > Hi I would like to upload a file through a web page. How can I do > > > this using FPC? Is there any example available? > > > > The fpw

Re: [fpc-pascal] CGI upload app

2007-06-06 Thread Burkhard Carstens
Am Dienstag, 5. Juni 2007 22:21 schrieb Michael Van Canneyt: > On Tue, 5 Jun 2007, Darius Blaszijk wrote: > > Hi I would like to upload a file through a web page. How can I do > > this using FPC? Is there any example available? > > The fpweb or cgiapp components can do this for you. Michael, is th

Re: [fpc-pascal] CGI upload app

2007-06-05 Thread Michael Van Canneyt
On Tue, 5 Jun 2007, Darius Blaszijk wrote: > Hi I would like to upload a file through a web page. How can I do this using > FPC? Is there any example available? The fpweb or cgiapp components can do this for you. Michael. ___ fpc-pascal maillist -

Re: [fpc-pascal] CGI upload app

2007-06-05 Thread Marc Pertron
Darius Blaszijk a écrit : Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available? Hi, You can use PSP : http://psp.furtopia.org/cgi-bin/psp/download.psp I wrote a e-commerce website in just a few days with it, it's very efficient ! M

[fpc-pascal] CGI upload app

2007-06-05 Thread Darius Blaszijk
Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available? Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Graeme Geldenhuys
On 3/6/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: This is not the only problem. To be able to do multiple MySQL queries at once (the MySQL C client does not allow this), PHP must retrieve the whole record set at once, and keep it in memory, thus wasting a lot of memory. That has nothing

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Bisma Jayadi
Now Pascal has its defficiencies in web programming too. CGI programming tends not to be very scalable, allthough it compensates by raw performance. The trouble is when databases come in, connection pooling is almost impossible to achieve with CGI. I'm not quite agree with this. CGI programmin

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Marco van de Voort
> I agree. But that is something of a matter of taste. > > > PHP is not professionals. If things get big, either in code or in > > performance, PHP becoems a serious handicap. > > I don't agree. PHP is used by corporations all over the place now. Sure, but as vehicle for forums, content system e

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Chuck Burkins
This is an interesting discussion, guys. I really believe that there is no one perfect language and some languages are better at some problems than other. I should also know better than to argue with people who clearly know more than I do about *writing* a language, since I know nothing about it,

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Michael Van Canneyt
On Tue, 6 Mar 2007, Daniël Mantione wrote: > > > Op Tue, 6 Mar 2007, schreef Jonas Maebe: > > > > > On 6 mrt 2007, at 13:16, Michael Van Canneyt wrote: > > > > > > PHP does not in any way burden a modern web server, at least when > > > > used > > > > as an apache module. My test server at w

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Daniël Mantione
Op Tue, 6 Mar 2007, schreef Jonas Maebe: > > On 6 mrt 2007, at 13:16, Michael Van Canneyt wrote: > > > > PHP does not in any way burden a modern web server, at least when > > > used > > > as an apache module. My test server at work has 128MB of RAM and only > > > occasionally does it slow down

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Jonas Maebe
On 6 mrt 2007, at 13:16, Michael Van Canneyt wrote: PHP does not in any way burden a modern web server, at least when used as an apache module. My test server at work has 128MB of RAM and only occasionally does it slow down noticably, typically when MySQL is working on a particularly ugly joi

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Daniël Mantione
Op Tue, 6 Mar 2007, schreef Chuck Burkins: > On 3/6/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > > > (Pascal) compiler based CGI is magnitudes faster than PHP, less resource > > consuming and much easier to maintain. The only advantage of PHP is that > > is easier to use for beginners

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Florian Klaempfl
Chuck Burkins schrieb: > On 3/6/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > >> >> (Pascal) compiler based CGI is magnitudes faster than PHP, less resource >> consuming and much easier to maintain. The only advantage of PHP is that >> is easier to use for beginners and that's probably the onl

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Michael Van Canneyt
On Tue, 6 Mar 2007, Chuck Burkins wrote: > On 3/6/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > > > (Pascal) compiler based CGI is magnitudes faster than PHP, less resource > > consuming and much easier to maintain. The only advantage of PHP is that > > is easier to use for beginners an

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Chuck Burkins
On 3/6/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: (Pascal) compiler based CGI is magnitudes faster than PHP, less resource consuming and much easier to maintain. The only advantage of PHP is that is easier to use for beginners and that's probably the only reason why PHP is so popular: you

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: > Hi, > > If you where planning on writing a new online inventory system with a > Firebird DB as backend. Yes that is what I'm about to do... What > would be the best choice of language? > > For one I don't know PHP, but was told it is really easy to learn. I > know O

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Bisma Jayadi
Sorry if this sounds stupid, but what is the difference? Memory usage, threading, etc? I've only ever setup websites with Apache and written basic CGI apps. Is there a speed difference between CGI and PHP? Memory usage? Session information? For informations, comparison, and benchmark, visit ht

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Bisma Jayadi
If you where planning on writing a new online inventory system with a Firebird DB as backend. Yes that is what I'm about to do... What would be the best choice of language? Of course, Pascal! :) For one I don't know PHP, but was told it is really easy to learn. I know Object Pascal / Delphi v

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Graeme Geldenhuys
On 3/6/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Firebird DB as backend. Yes that is what I'm about to do... What > would be the best choice of language? FPC ;-) Asking in this mailing list, I would have guessed that much. :-) You can also create an apache module with FPC. I wou

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Michael Van Canneyt
On Tue, 6 Mar 2007, Graeme Geldenhuys wrote: > Hi, > > If you where planning on writing a new online inventory system with a > Firebird DB as backend. Yes that is what I'm about to do... What > would be the best choice of language? FPC ;-) > > For one I don't know PHP, but was told it is re

[fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Graeme Geldenhuys
Hi, If you where planning on writing a new online inventory system with a Firebird DB as backend. Yes that is what I'm about to do... What would be the best choice of language? For one I don't know PHP, but was told it is really easy to learn. I know Object Pascal / Delphi very well. What wou

Re: [fpc-pascal] cgi-bin/PSP

2005-11-21 Thread L505
> > You have to be careful here, because there are two "competing" projects To reduce the confusion, let's call Nemesis the "Nemesis PSP project", and let's call the other one the "PSP CGI project" for now. They are not exactly competing. The two projects are open source, and they could actua

Re: [fpc-pascal] cgi-bin/PSP

2005-11-21 Thread Matt Emson
> i was pretty sure there might be some PSP lurkers on this list. You have to be careful here, because there are two "competing" projects called PSP. One is by a Spanish guy (who wrote the Nemesis Pascal interpreter too) and uses an Object Pascal interpreter to pretty much do the same kind of th

Re: [fpc-pascal] cgi-bin/PSP

2005-11-20 Thread Marco van de Voort
> > p.s. Also, Trustmaster one of the developers of PSP has already written a > > small > > server of his own in Pascal... I think he put it up on source forge. He > > used that > > with PSP a while back for some experiments. > Just for anyone else who is interested.. The PSWS (Pretty Small Web S

Re: [fpc-pascal] cgi-bin/PSP

2005-11-20 Thread L505
> p.s. Also, Trustmaster one of the developers of PSP has already written a > small > server of his own in Pascal... I think he put it up on source forge. He used > that > with PSP a while back for some experiments. > Just for anyone else who is interested.. The PSWS (Pretty Small Web Server)

Re: [fpc-pascal] cgi-bin/PSP

2005-11-20 Thread L505
Long answer (scroll down for shorter answer) Depends on what version you are using... If its a newer version (1.4.x or 1.5.x), did you take GZIP compression option off in the configuration file? (depending on which version of PSP you use, it will be called pwu.conf or psp.conf or psp.ini) Gzip

[fpc-pascal] cgi-bin/PSP

2005-11-20 Thread Tony Pelton
i don't know if i will get beat down for asking this question here ... but i'll try. i found a pascal web server : http://www.ritlabs.com/en/products/tinyweb/ it supports CGI suppossedly. if i try to get it to use a PSP CGI, the web server renders a response that says the CGI didn't return anyt

Re: [fpc-pascal] CGI question

2004-10-08 Thread Inpromptu
> > > On Fri, 8 Oct 2004, Inpromptu wrote: > > > Hi: > > > > CGI examples are very, very good. My first cgi-app is finally running ! > > > > But, I need to solve one more problem: how do I upload a file ? Is it possible > > with freepascal-cgi ? > > Which version ? > There are many: >

Re: [fpc-pascal] CGI question

2004-10-08 Thread Michael . VanCanneyt
On Fri, 8 Oct 2004, Inpromptu wrote: > Hi: > > CGI examples are very, very good. My first cgi-app is finally running ! > > But, I need to solve one more problem: how do I upload a file ? Is it possible > with freepascal-cgi ? Which version ? There are many: uncgi, ezcgi, cgiapp, I bel

[fpc-pascal] CGI question

2004-10-08 Thread Inpromptu
Hi: CGI examples are very, very good. My first cgi-app is finally running ! But, I need to solve one more problem: how do I upload a file ? Is it possible with freepascal-cgi ? Thanks ! Inpromptu -- _ Web-based SMS services av

Re: [fpc-pascal]CGI and inet Units

2003-09-17 Thread Michael Van Canneyt
On Wed, 16 Sep 2003, Bob Richards wrote: > On Tue, 2003-09-16 at 15:47, [EMAIL PROTECTED] wrote: > > On 16 Sep 2003, Bob Richards wrote: > > > The uncgi and inet units are distributed with FPC. > > > > Surprised you don't find any links, becayse the following definitely work: > > http://www.free

Re: [fpc-pascal]CGI and inet Units

2003-09-16 Thread Bob Richards
On Tue, 2003-09-16 at 15:47, [EMAIL PROTECTED] wrote: > On 16 Sep 2003, Bob Richards wrote: > The uncgi and inet units are distributed with FPC. > > Surprised you don't find any links, becayse the following definitely work: > http://www.freepascal.org/packages/inet.html > http://www.freepascal.or

Re: [fpc-pascal]CGI and inet Units

2003-09-16 Thread Michael . VanCanneyt
On 16 Sep 2003, Bob Richards wrote: > Greetings all: > > I am new to this list, and have a question. I have searched the list > archives for the answer, but found only dead links :-(( > > I went to the FPC site, and likewise found only dead links :-(( > > WHere can I find the units "cgi" "uncgi"

[fpc-pascal]CGI and inet Units

2003-09-16 Thread Bob Richards
Greetings all: I am new to this list, and have a question. I have searched the list archives for the answer, but found only dead links :-(( I went to the FPC site, and likewise found only dead links :-(( WHere can I find the units "cgi" "uncgi" and "inet" THey "used" to be under contrib on t

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread Michael . VanCanneyt
On Mon, 15 Sep 2003, James Mills wrote: > On Sun, Sep 14, 2003 at 05:36:25PM +0200, [EMAIL PROTECTED] wrote: > > > > > > On Mon, 15 Sep 2003, James Mills wrote: > > > > > On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > > > >

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 05:36:25PM +0200, [EMAIL PROTECTED] wrote: > > > On Mon, 15 Sep 2003, James Mills wrote: > > > On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > > > > It hands when you POST data with two angled bracked,

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread Michael . VanCanneyt
On Mon, 15 Sep 2003, James Mills wrote: > On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > > It hands when you POST data with two angled bracked, eg: "> >" > > > I have not tried using GET, I don't think it would be appropiate >

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > It hands when you POST data with two angled bracked, eg: "> >" > > I have not tried using GET, I don't think it would be appropiate > > for a > > form based page :) > > Form data can be

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > > It hands when you POST data with two angled bracked, eg: "> >" > I have not tried using GET, I don't think it would be appropiate > for a > form based page :) Form data can be POST'd or GET'd depending on the way you form the 'form' tag. You're righ

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-13 Thread James Mills
On Sat, Sep 13, 2003 at 01:50:29AM -0700, Alan Mead wrote: > I don't know anything about the FP cgi routines, but I program CGI a > lot and the handling of characters like '>' could be tricky. Does it > hang on other strings containing an angle bracket, or just this > particular one? And you say

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-13 Thread Michael . VanCanneyt
On Sat, 13 Sep 2003, James Mills wrote: > On Fri, Sep 12, 2003 at 06:34:16PM +0200, [EMAIL PROTECTED] wrote: > > > > > > On Sat, 13 Sep 2003, James Mills wrote: > > > > > Hi all again, > > > > > > I'm reposting this question as I would like to find some answers to this > > > problem, or writing

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-13 Thread Alan Mead
I don't know anything about the FP cgi routines, but I program CGI a lot and the handling of characters like '>' could be tricky. Does it hang on other strings containing an angle bracket, or just this particular one? And you say when you POST... that means it works if you ... (I'm blanking on na

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-12 Thread James Mills
On Fri, Sep 12, 2003 at 06:34:16PM +0200, [EMAIL PROTECTED] wrote: > > > On Sat, 13 Sep 2003, James Mills wrote: > > > Hi all again, > > > > I'm reposting this question as I would like to find some answers to this > > problem, or writing this particular kind of CGI App will be impossible. > > (F

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-12 Thread James Mills
On Fri, Sep 12, 2003 at 11:09:28AM -0700, Alan Mead wrote: > Is this something demonstrable in a small program? I could rewrite another version of the cgi app with a simple html to post data containing "> >". I'll try and do that tonight and post it. cheers James -- - -Zero Defect Software Engin

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-12 Thread Alan Mead
Is this something demonstrable in a small program? --- James Mills <[EMAIL PROTECTED]> wrote: > Hi all again, > > I'm reposting this question as I would like to find some answers to > this > problem, or writing this particular kind of CGI App will be > impossible. > (Forum). > > I think there m

  1   2   >