To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Newbies

Newbies Help for those who are just getting started

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-04-2002, 02:27 PM   #1
Cynthia Blue
Member
 
Join Date: Nov 2002
Location: SLC Utah USA
Posts: 57
CGI vs ISAPI?

Hello, I'm a complete newb to PHP and MySQL... I started my own server a couple of months ago, wanting to host my own sites on my own box. I'm having a great time but there are some things I'm still figuring out.

I run a W2K Server box with IIS5. I've been getting a Stop error that shuts down my box and reboots. I ran the dskchk, and it seemed to have fixed some files.

Anyway, I've been told that the ISAPI with IIS5 can be unstable...

What exactly is the difference between CGI and ISAPI? And how easily would it be to change from one to the other? And how do I see, on my box, which version I'm running?

Thanks.
Cyn
__________________
http://www.utahdogs.com
Cynthia Blue is offline   Reply With Quote
Old 11-05-2002, 11:42 AM   #2
Cynthia Blue
Member
 
Join Date: Nov 2002
Location: SLC Utah USA
Posts: 57
No one knows?
__________________
http://www.utahdogs.com
Cynthia Blue is offline   Reply With Quote
Old 11-05-2002, 02:35 PM   #3
edwardsbc
Senior Member
 
edwardsbc's Avatar
 
Join Date: Jan 2001
Location: Corona CA
Posts: 381
The ISAPI verision of PHP is a "run once" module for IIS. The CGI version is completely external to IIS and is run each time a PHP file must be parsed.

Obviously, the ISAPI version is faster, particularly under load. However, as the ISAPI version interacts with the internals of IIS there is a potential for problems. Knowing Micro$oft software, I would attribute most of the problems with the PHP/ISAPI module to bad behaviour within IIS code. I use the ISAPI module regularly, and I do rarely have IIS crashes when accessing PHP pages. Because the source is not available, the PHP coders can only conform to the published ISAPI specifications (which I'm sure they have to the best of their ability).

(Using IIS 4.0)
To tell if you are running CGI or ISAPI, open the Internet Service Manger, hilite your root web site, right click and ask for properties. Under the Home Directory tab click on configuration button. Here you will see a mapping for files with the .php extension. If the file is php4isapi.dll you are using the ISAPI version. If it is php.exe you are using the CGI version.
edwardsbc is offline   Reply With Quote
Old 05-04-2003, 12:23 PM   #4
Cynthia Blue
Member
 
Join Date: Nov 2002
Location: SLC Utah USA
Posts: 57
Thank you!
__________________
http://www.utahdogs.com
Cynthia Blue is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:03 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.