Fast CGI is almost exactly like regular cgi only you place the bulk of
your code within a while loop... which blocks for until a request is
made. It's somewhat like daemonizing a cgi script to enhance
performance. mod_perl, on the otherhand gives you direct access to the
Apache API and basically embeds a Perl interpreter in Apache. mod_perl
modules are extensions of Apache itself. mod_perl generally is more
popular than Fast CGI, however it's not as efficient, although both
methods are considerably more efficient than regular cgi.
The best thing to do is to download the FCGI module and mod_perl. Look at
their Perl docs and then hit the mod_perl users group for additional
help. Also, O'Reilly puts out a very good book entitled something like
Apache Modules in Perl and C.
In short, mod_perl and FCGI are Perl and don't change Perl's syntax. From
a coding standpoint, they're like any other module... you just need to
understand the module's methods and usage.
--Curt
On Wed, 28 Mar 2001, Dexter Coehlo wrote:
>
>
> One other question to educate myself, mod_perl and Fast CGI. Is there
> much change in regualr Perl syntax or is it the same , just a different
> technology? I remeber considering mod_Perl to sustain db connection.
>
> Dexter
>
>
> On Wed, 28 Mar 2001, Curt Russell Crandall wrote:
>
> > First of all, I'm not an expert on PHP. But, I believe you
> > cpan has modules like Mason that could give you what you want
> > w/o messing with PHP. Actually, I'm not real
> > big on mixing presentation layers with code and you might consider using
> > mod_perl or FastCGI instead. That being said, why do you want to mix PHP
> > and Perl? Is it in order to use Perl DBI? If so, PHP, I believe, has a
> > similar db interface available (???I think)???. I don't think you really
> > want
> > to mix PHP and Perl unless you have a really really good reason to do
> > so. PHP alone probably has the capabilities you are already looking
> > for. If not and you have the flexibility to pick which tools you are
> > going to use, write the whole thing in Perl. If you know Java well, maybe
> > write a Java servlet.
> >
> > I would try posting a question like this to a more general Perl mail list
> > (look at www.perl.org for a list) since this is a mailing list for DBI
> > issues. You will probably find more help there.
> >
> > Good Luck,
> > --Curt
> >
> > On Wed, 28 Mar 2001, Dexter Coehlo wrote:
> >
> > >
> > >
> > > Howdy dbi-users,
> > >
> > > I know a lot of here use perl, How can if possible can I use Perlin PHP,
> > > I now know PHP is another script language.
> > >
> > > But I believe I heard you can embed Perl into a PHP page. That PHP
> > > as I thought was a technology like ASPallowing embedding different
> > > languages within PHP tags.
> > >
> > > Thanks for helping
> > >
> > > Dexter
> > >
> > >
> > >
> >
> >
>
>