Accessing PHP globals from a module.
| From: | (Eric Veldhuyzen) | Date: | Tue, 21 May 2002 11:45:15 +0000 |
| Subject: | Accessing PHP globals from a module. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98581@lists.php.net to get a copy of this message | ||
Hi,
I have just written a module for PHP (in C, linked with PHP statically).
Now I need to access session variables and other globals from whithin my
module. But I can't find how I should do this, I see documentation on
how
to call user functions, and how to create new global varables, but now
how to access existing globals. Could somebody please tell me where
tell me where this is documented if it is documented at all, or explain
it to me if it is not documented yet?
--
#!perl # Life ain't fair, but root passwords help.
# Eric Veldhuyzen eric@terra.telemediair.nl
$!=$;=$_+(++$_);($:,$~,$/,$^,$*,$@)=$!=~ # Perl Monger
/.(.)...(.)(.)....(.)..(.)..(.)/;
$^$~$/$: $^$*$@$~ $_>&$;