That are Apache Variables, in IIS the variables are diferent. So i don't
believe that answer the question.

"Chris Hayes" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> dunno what's best, test on each server what values you can find in
$_SERVER
> (PHP>=4.10),
>
> maybe
> $_SERVER["SERVER_SIGNATURE"]
> or
> $_SERVER["SERVER_SOFTWARE"]
>
>
> At 17:07 4-6-03, you wrote:
> >Hi,
> >what is the best method to detect if a php script is started
> >into Apache, IIS or in a CLI script?
> >
> >I've found several issues, but I am not sure to be right.
> >
> >* CLI:
> >
> >- PHP_SELF='-'
> >- var $argv, $argc exist
> >- constant STDIN, STDOUT, STDERR exist
> >
> >* http server:
> >
> >- PHP_SELF != '-' for ever
> >- $argv, $argc not found (in my apache install)
> >- constant STDIN, STDOUT, STDERR not exist, but they can be defined by
> >someone else
> >
> >* But I don't know between Apache and IIS.
> >
> >Thanks
> >Jean-Pierre
>



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

Reply via email to