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