|
Posted by Oli Filth on 04/27/06 01:23
comp.lang.php said the following on 26/04/2006 23:09:
> Is it possible to access values preset from $_SESSION from within a CLI
> PHP page? If so, how is it done? Each time I try to access $_SESSION
> is an empty array; the moment I leave the CLI PHP and return to my
> calling web-app PHP script, $_SESSION is back again, values and all,
> completely untouched.
>
> Can $_SESSION be called? If not, then I have a bigger problem inasmuch
> as $_REQUEST variables set via form/query-string MUST be accessed from
> within CLI PHP script, and the only way I can think of is to put all of
> $_REQUEST into $_SESSION, or what else do I do? Stumped.
By definition, the CLI version of PHP is a stand-alone process. It's
not tied in any way to a web-server, or an HTTP session, or anything
like that. Consequently, the concept of GET/POST/session/cookie
variables is meaningless in CLI PHP.
Why are you calling CLI PHP from web-server-based PHP?
--
Oli
Navigation:
[Reply to this message]
|