PHP auto global variables inside C extension
| From: | Arjun Jain | Date: | Tue, 22 Mar 2005 07:02:44 +0000 |
| Subject: | PHP auto global variables inside C extension | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-15531@lists.php.net to get a copy of this message | ||
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?
Well what I am trying to do is put the uploaded file in a custom database. But for that I require all the four paramaters, viz
|$_FILES['userfile']['name'], ||$_FILES['userfile']['type'], ||$_FILES['userfile']['size'] and| |$_FILES['userfile']['tmp_name']|.
So, instead of the user having to pass all this from php as function arguments, is there no way i can get these directly? Inside the extension code?
Thanking you in advance.
Regards
aj
http://arjun.notlong.com