Re: [PHP] Problem with Uploading Many Files (>22)

2001-09-12 Thread Jani Rautiainen

On Windows it should be the latest, because I just downloaded it 2 weeks
ago... On Linux (my client's server) I assume it's one of the latest also...

"Matthew Loff" <[EMAIL PROTECTED]> wrote in message
007501c13bc8$520f7fd0$0ce60281@bang">news:007501c13bc8$520f7fd0$0ce60281@bang...
>
> What version of PHP are you running?
>
> There were a few bugs in the file upload code that have been fixed in
> recent relases of PHP...
>
> --Matt
>
> -Original Message-
> From: Jani Rautiainen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 3:51 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Problem with Uploading Many Files (>22)
>
>
> I have been fighting with an annoying problem for couple days.. If I try
> to upload more than 22 files (no matter what size), the last file
> doesn't upload correctly..
>
> I don't know PHP very well, so I don't know whether there is a way to
> configure the server to get around the problem...
>
> In the beginning I thought it was a problem with the java applet that is
> used to upload the files, but then I tested with a normal html form
> (below) and problem was still there, so I'm assuming it's PHP (I've
> tested it with both Win/IIS and Linux/Apache configurations)..
>
> I have the following piece of code to test the feature... The output
> lists all the files, but the last file doesn't have size set (name is
> correct
> though) and the copy function gives an error...
>
>  enctype="multipart/form-data"> File 1:  type="file"> File 2:  File 3:
>  File 4:  type="file"> File 5:  File 6:
>  File 7:  type="file"> File 8:  File 9:
>  File 10:  type="file"> File 11:  File 12:
>  File 13:  type="file"> File 14:  File 15:
>  File 16:  type="file"> File 17:  File 18:
>  File 19:  type="file"> File 20:  File 21:
>  File 22:  type="file"> File 23:  File 24:
>   
>
> and in the receiving side there is the following code
>
>   $filedir = "c:\\filestorage\\";
>  $count = 1;
>  foreach ( $HTTP_POST_FILES as $file ) {
>   $filename = $file['name'];
>   $filesize = $file['size'];
>  echo "File name $filename? size: $filesize\n";
>   copy($file['tmp_name'], $filedir.$count.".jpg");
>   $count++;
> }
> ?>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] To
> contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Problem with Uploading Many Files (>22)

2001-09-12 Thread Jani Rautiainen

I have been fighting with an annoying problem for couple days.. If I try to
upload more than 22 files (no matter what size), the last file doesn't
upload correctly..

I don't know PHP very well, so I don't know whether there is a way to
configure the server to get around the problem...

In the beginning I thought it was a problem with the java applet that is
used to upload the files, but then I tested with a normal html form (below)
and problem was still there, so I'm assuming it's PHP (I've tested it with
both Win/IIS and Linux/Apache configurations)..

I have the following piece of code to test the feature... The output lists
all the files, but the last file doesn't have size set (name is correct
though) and the copy function gives an error...


File 1: 
File 2: 
File 3: 
File 4: 
File 5: 
File 6: 
File 7: 
File 8: 
File 9: 
File 10: 
File 11: 
File 12: 
File 13: 
File 14: 
File 15: 
File 16: 
File 17: 
File 18: 
File 19: 
File 20: 
File 21: 
File 22: 
File 23: 
File 24: 



and in the receiving side there is the following code

\n";
  copy($file['tmp_name'], $filedir.$count.".jpg");
  $count++;
}
?>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]