Well if you knew what cgi was then it probally would make all sence.. C(common)G(gateway)I(interface) is a way that a "webserver" can comnuncate with exisisting applications. It sets up some envirnment variables that the executable will read then determine what it needs to do. ie what file to execute. so thats why the cgi will act as a command line interperter. cgi's are slow. so the rest of the sapi allows php to be compiled into existing webserver so the whole "cgi" process doesn't need to happen.
- Brad.. --- "Hunter, Ray" <[EMAIL PROTECTED]> wrote: > Thanks, I will try that. I am new to php and have a question: > > What is the difference between cgi and sapi or the other ways to compile > php? > > Ray Hunter > Firmware Engineer > > ENTERASYS NETWORKS > > > -----Original Message----- > From: brad lafountain [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 19, 2002 7:45 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] PHP Executable > > > > --- Derick Rethans <[EMAIL PROTECTED]> wrote: > > On Tue, 19 Feb 2002, Hunter, Ray wrote: > > > > > How do I compile php to get the executable file? > > > Is he talking about cgi/cli? or having php compile executeable files... > > compile php as cgi.. > ./configure > there will be a php executable in the working directory > > > You can't do that (yet). > > > > Derick > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php