Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15534 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93742 invoked by uid 1010); 22 Mar 2005 08:54:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93723 invoked by uid 1007); 22 Mar 2005 08:54:27 -0000 Message-ID: <20050322085427.93722.qmail@lists.php.net> To: internals@lists.php.net Date: Tue, 22 Mar 2005 09:51:44 +0100 References: <423FD9EB.1050306@picorp.com> Lines: 31 User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit X-Posted-By: 62.138.229.210 Subject: Re: SAPI Marco SG From: johannes@php.net (Johannes Schlueter) Arjun Jain wrote: > Hi everyone, > > How do I use the macro to get the information regading the orignal file > name, temp file name, size etc of the file uploaded using > SG(rfc1867_uploaded_files)? I found out that this returns a HashTable *. > What to do next? How do I get the string names and integer size of the > uploaded file? hash_tables can be acces with the functions from zend_hash.c/zend_hsh.h http://lxr.php.net/source/ZendEngine2/zend_hash.c http://lxr.php.net/source/ZendEngine2/zend_hash.h As Kamesh wrote "SG(rfc1867_uploaded_files) will have a list of filenames uploaded." so you need to get filesize and so on yourself. > P.S. I am sorry if I have been asking stupid questions, but there is zilch > documentation available, so i dont have another option :-). There is quite a huge amount of documentation available. It's called "source" or sometime "source code" ;-) LXR (see link above) and your local search tools can do a quite well job in finding information about using stuff in there. Just check how others use the global.... johannes -- Johannes Schlüter Mayflower GmbH / ThinkPHP http://thinkphp.de http://blog.thinkphp.de