Re: ISAPI vs CGI

From: Date: Wed, 23 Jun 2004 09:08:21 +0000
Subject: Re: ISAPI vs CGI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188858@lists.php.net to get a copy of this message
On Wednesday 23 June 2004 16:42, Vincent DUPONT wrote: > I have a script that need to run on ISAPI module on one server and on CGI > on anther server. I would like my code to be able to react differently > depending on the CGI/ISAPI mode. > > How can I detect the running mode of PHP?? > is there a $_SERVER variable or anything?? I don't know. But you've asked the right question. Take it a step further by doing print_r($_SERVER); on both servers and see if there's something you can use to differentiate the two. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* A man is only a man, but a good bicycle is a ride -- Murphy's Laws on Sex n50 */

« previous php.general (#188858) next »