Re: Server API - what is the difference please?

From: Date: Sat, 22 Sep 2001 02:23:12 +0000
Subject: Re: Server API - what is the difference please?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68266@lists.php.net to get a copy of this message
The CGI (.exe) version will not scale up well for a busy server. Each time a page is requested, PHP.EXE is fired up, does its thing, and quits. In the ISAPI model, PHP is a DLL that gets glomned on to IIS, and is just always there. Alas, many of the third-party DLLs are not yet thread-safe, so you can't safely *USE* ISAPI without extensive testing to be sure all the DLLs you need will work in ISAPI mode. (They're fine in CGI mode since a separate PHP.EXE runs for each script.) If your site is "fast enough" leave it alone -- If not, switch to ISAPI and test like crazy. Oh. There are, like, four or five things you can't do with CGI: http://php.net/virtual (http://php.net/exec and brethern will often suffice, but they don't work on all Windoze either...) HTTP Authentication in PHP (You can use, err, whatever IIS does for that) Some esoteric function nobody needs anyway. Some fourth thing that's fairly common, not real critical, and I can't remember. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Pete Hawkes <pete_webmasterNOSPAM@yahoogoo.co.uk> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Monday, September 17, 2001 2:20 PM Subject: Server API - what is the difference please? > Hello, > > Sorry to bother you, I have just installed PHP4 because I am just starting > to learn the language. > I ran the .exe file from a Flash book CD ROM, version 4.0.4pl1. What is the > difference between the CGI and the ISAPI installation? > I am running Windows 98SE with PWS, does the fact that my installation is a > CGI Server API effect any thing at all? > So far everything seems to be OK including connecting to MySQL. If I have > done something wrong please let me know. > > Many thanks > > Pete > >

« previous php.general (#68266) next »