Sorry about the delay in answering, I had some trouble with my mailserver.
As far as daemonizing is concerned I reccomend checking the examples/demos folder of the FPC documentation, there is a fully working example of a daemon
there.
I would also recommend you do not use many small programs, it is hell to debug
and worse to maintain. Rather I have found (and I have written severall large
web apps in FPC) that the best approach is something like this.
procedure page1;
---snip-----
procedure page2;
----snip-------
Begin {Main}
--insert standard CGI headers here, as well as common html headers for all --pages - that way you can change the look and feel without modifying anything
---else
If paramcount=0 then
begin
---The main (first) page of your app goes here-------
end;
If paramstr(1) = 'page1' then page1;
if paramstr(1) = 'page2' then page2;
end.
Now to get to page2 for example your link (or form action) would be myapp.cgi?page2
Ciao
A.J. Venter
Headrush.co.za
Jilani Khaldi wroteHi All,
I have prototyped a large web application using Ruby and InterBase but
the
performance seems to be not good enough to code it in Ruby or any other
scripting language. Seen I am an old Pascal fan and I after have tried
and
programmed in many other languages I still consider Pascal the only true
high level general purpose language. Now I wonder if I can use it even
for
a large web application seen the problem of performance will surely go
with
Show quoted text 6 lines
FPC.
My application would contain a main application running in memory and
permanently connected to InterBase with many little others applications
running as CGI who access to the main one in momery. So, could somebody
point me how to write daemon applications in FPC? Or just how to
comunicate
Show quoted text 11 lines
with a FP running application?
Every hint is welcome :-)
jilani
_______________________________________________
fpc-pascal maillist
-
-------------------------------------------------------------------- mail2web - Check your email from the web at
http://mail2web.com/ .