Re: $_FILES passed by value
| From: | John W. Holmes | Date: | Thu, 03 Jun 2004 15:19:20 +0000 |
| Subject: | Re: $_FILES passed by value | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187541@lists.php.net to get a copy of this message | ||
From: "Daniel Guerrier" <dan_guerrier@yahoo.com>
> If I pass a $_FILES to an object by value. Does it
> create a copy of the actual posted files as well?
>
> In other words if I post a 2MB file to save.php and in
> turn pass $_FILES to an object $file->fileis($_FILES);
> Does that create 4MB of data in memory?
No. The actual file data is not in the $_FILES array. There is just an
element that contains the name of the temporary file, but not the actual
data.
---John Holmes...