thanks, Dash. I'm sure that would work, but i'm try to set up a page that
allow a user to upload pictures for use in a photo gallery that i've
scripted (i know i'm reinventing the wheel here). a user might have 50 or a
100 pics, and to upload one by one may be a bit tedious.

does someone have an alternative approach that accomplishes what i'm trying
to do?  from what i've read, $_FILES seems to contain an associative array.
i'm not sure what that means, but perhaps that's things off.

i got this from a comment in the docs:

The $_FILES variable is not very well documented. Beware that it contains an
associative array:

array(1) {
["File"]=>
array(5) {
["name"]=>
string(12) "brahhh.jpg"
["type"]=>
string(11) "image/pjpeg"
["tmp_name"]=>
string(14) "/tmp/php2Uyz0c"
["error"]=>
int(0)
["size"]=>
int(36950)
}
}

it seems that $_FILES['userfile'] has a default size of 5.  but i'm not sure
how to...comprehend this.  any ideas on how to get around this?

thanks.

--db

"Dash McElroy" <[EMAIL PROTECTED]> wrote in message
news:ABA3F1F1A223D411BE6C006008A6F7E2604D86@;MSX1-PTON...
> db;
>
> What I would do (and I have not done this...) would be this:
>
> Make the page ask for one file, then upload it, then automatically refresh
> (via header("Location: ".$_SERVER['PHP_SELF']); or something similar, and
> ask for another file. I think this is how Yahoo's mail program does that.
>
> A little cumbersome, but it should work.
>
> -Dash
>
> -----Original Message-----
> From: db [mailto:postmaster@;kouryuu.com]
> Sent: Tuesday, October 22, 2002 5:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] this one's got me stumped...
>
>
> ...which isn't that difficult cuz i'm a dunce, but anwyay....
>
> i'm trying to upload multiple files at once using the example in the php
> doc's.  i want to be able to upload up to 20 files at once, but less than
> that at any time.
>
> this is what i have (basically):
>
>     <input class='tbox' type='file' name='userfile[]' size='50'>
>
> listed out in a table 20 times and followed by:
>
>     <input class='button' type='submit' name='submit' value='upload'>
>
> "tbox," refers to a style in a css file. anyway, i'm then trying to
> determine the size of the array with:
>
>     $size = sizeof($_FILES['userfile']);
>
> i would think this would work, however, no matter the number of files i
> select, $size=5. always!
>
> is there something wrong with my syntax here? or is there a better way to
do
> this with this type of array?  incidentally, i have register_globals
turned
> off -- not sure if that would affect anything....
>
> thx.
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.406 / Virus Database: 229 - Release Date: 10/21/2002
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.406 / Virus Database: 229 - Release Date: 10/21/2002



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

Reply via email to