|
Posted by Gordon Burditt on 09/26/88 11:47
>> Or PHP configured as a CLI binary (AFAIK $_SERVER is only available to
>> apache modules and ISAPI modules).
>
>I'm pretty sure that $_SERVER, along with $_GET, $_POST, and $_COOKIE
>are available in PHP-CLI. They're built fairly deep inside PHP.
But even if $_GET, $_POST, $_COOKIE, and $_REQUEST exist in PHP-CLI,
there's absolutely nothing to put in them. If the point is that
you could add something to them, ok, but I'm not sure that's a good
thing.
$_SERVER['argv'], at least, exists. $_SERVER in the CLI version also
seems to pick up environment variables from its invoker.
>There's no easy way to rip them out. It's certainly not worth the
>effort, as you'll only end up breaking things.
>
>Only session and file support support are removed from CLI if I
>remember correctly.
Gordon L. Burditt
Navigation:
[Reply to this message]
|