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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to