Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15531 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94153 invoked by uid 1010); 22 Mar 2005 07:00:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94116 invoked from network); 22 Mar 2005 07:00:57 -0000 Received: from unknown (HELO picorp.com) (127.0.0.1) by localhost with SMTP; 22 Mar 2005 07:00:57 -0000 X-Host-Fingerprint: 82.165.243.91 u15170962.onlinehome-server.com Linux 2.4/2.6 Received: from ([82.165.243.91:44452] helo=picorp.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 67/E6-26545-6A2CF324 for ; Tue, 22 Mar 2005 02:00:55 -0500 Received: (qmail 1778 invoked by uid 2020); 22 Mar 2005 07:00:52 -0000 Received: from unknown (HELO ?172.16.143.82?) (arjun@164.164.12.120) by u15170962.onlinehome-server.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 Mar 2005 07:00:52 -0000 Message-ID: <423FC314.5060801@picorp.com> Date: Tue, 22 Mar 2005 12:32:44 +0530 User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: php-dev Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: PHP auto global variables inside C extension From: arjun@picorp.com (Arjun Jain) 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