Re: [PHP] $_FILES associative array

2002-12-06 Thread Jason Wong
On Saturday 07 December 2002 01:10, Tom Rogers wrote:
>
> If your input is like this:
>
> 
>
> The array you get would look like this:
>
> $_FILES['userfile']['name'] The original name of the file on the client
> machine.
>
> $_FILES['userfile']['type'] The mime type of the file, if the browser
> provided this information. An example would be "image/gif".
>
> $_FILES['userfile']['size'] The size, in bytes, of the uploaded file.
>
> $_FILES['userfile']['tmp_name'] The temporary filename of the file in which
> the uploaded file was stored on the server

Hmm, just print_r() the damn thing and see what it contains ;-)

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
In Nature there are neither rewards nor punishments, there are consequences.
-- R.G. Ingersoll
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] $_FILES associative array

2002-12-06 Thread Tom Rogers
Hi,

Saturday, December 7, 2002, 2:56:53 AM, you wrote:
MS> I'm trying to find some documentation on the $_FILES
MS> array, but on PHP, it's a little confusing. I read the
MS> documentation and the comment from rep_spam@..., but
MS> that wasn't too clear to me either.

MS> I'm aware that when uploading a file named
MS> $uploadedfile, the size, name, etc. get stored in
MS> variables called $uploadedfile_size, _name,  But
MS> when using the $_FILES array, does everything then get
MS> stored in $_FILES["uploadedfile"],
MS> $_FILES["uploadedfile_size"], etc...?

If your input is like this:



The array you get would look like this:

$_FILES['userfile']['name'] The original name of the file on the client machine. 

$_FILES['userfile']['type'] The mime type of the file, if the browser provided this 
information. An example would be "image/gif". 

$_FILES['userfile']['size'] The size, in bytes, of the uploaded file. 

$_FILES['userfile']['tmp_name'] The temporary filename of the file in which the 
uploaded file was stored on the server


-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php