You are here: Re: __SELF__? « PHP Programming Language « IT news, forums, messages
Re: __SELF__?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация