At 09:02 22/03/2005, Arjun Jain wrote:
>Hi everyone,
>
>I was wondering if there was any way in which the PHP auto global
>variables could be used inside the C extension code? Where does php store
>all the global variables?
It stores them in the globals hash table. Take a look at
php_session_start() in ext/session/session.c, and look for "_COOKIE", for
an example of how you can access these. Once you have a reference to the
$_FILES hash, you can iterate it to get each file (which is also a hash),
and then lookup each element to obtain its value.
Zeev