Re: [PHP] [ANSWER] problem uploading big (50MB) file

2001-03-30 Thread Jack Dempsey

basic algebra:
1k = 1024 bytes
1mb = 1024 kbytes = 1048576 bytes
100mb= 104857600 bytes
Xmb = (1048576 * X) bytes

-jack

Matt Williams wrote:
> 
> > > Try replacing "100M" with it's byte equivalent.  Or maybe it's
> > > kilobytes.  One on of my systems they had "2M" and it wouldn't upload
> > > anything cause it didn't parse it right.
> > > In other words, set that value to what you had with say php4.0.1
> > > good luck!
> >
> >   replaced 100M by 104857600,
> >   and it WORKED !
> >
> 
> Further on from this, how do I work out the given byte value for a size in
> M??
> 
> TIA
> 
> M@
> 
> --
> 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]




RE: [PHP] [ANSWER] problem uploading big (50MB) file

2001-03-30 Thread Matt Williams

> > Try replacing "100M" with it's byte equivalent.  Or maybe it's
> > kilobytes.  One on of my systems they had "2M" and it wouldn't upload
> > anything cause it didn't parse it right.
> > In other words, set that value to what you had with say php4.0.1
> > good luck!
>
>   replaced 100M by 104857600,
>   and it WORKED !
>

Further on from this, how do I work out the given byte value for a size in
M??

TIA

M@


-- 
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]




RE: [PHP] [ANSWER] problem uploading big (50MB) file

2001-03-29 Thread Gilles-Eric Descamps

> -Original Message-
> From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] 
> Subject: Re: [PHP] problem uploading big (50MB) file

> Try replacing "100M" with it's byte equivalent.  Or maybe it's
> kilobytes.  One on of my systems they had "2M" and it wouldn't upload
> anything cause it didn't parse it right. 
> In other words, set that value to what you had with say php4.0.1
> good luck!

  replaced 100M by 104857600,
  and it WORKED !

  two days I was stuck on this 

  Thanks,



--
Gilles-Eric DESCAMPS,   Voice: (408) 545-1130
SILICON ACCESS NETWORKS   Fax: (419) 844-7467
<    Enabling the Future Internet       >
211 River Oaks Parkway  - San Jose, CA, 95134
mailto:[EMAIL PROTECTED]
"Sed quis custodiet ipsos custodes ?"



> -Original Message-
> From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 1:18 PM
> To: Gilles-Eric Descamps; [EMAIL PROTECTED]
> Subject: Re: [PHP] problem uploading big (50MB) file
> 
> 
> This is set by max_execution_time, did you restart apache to 
> re-read your
> php.ini file?
> 
> 
> 
> Clayton Dukes
> -
> Download Free Essays, Term Papers and Cisco Training from 
> http://www.gdd.net
> 
> 
> 
> 
> 
> 
> 
> - Original Message -
> From: "Gilles-Eric Descamps" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 29, 2001 4:06 PM
> Subject: [PHP] problem uploading big (50MB) file
> 
> 
> > Hi,
> >
> > I'm using IE 5.01 to upload a big (~50MB) file to a form.
> >
> > The form works well for small files.
> > If I try a big file, IE timeout after 30 seconds
> > saying "cannot find server or DNS error"
> > This same exact php code works for small files...
> >
> > I've modified php.ini to
> > max_execution_time = 120
> > memory_limit = 104857600; Maximum amount of memory a
> script
> > may consume (100MB)
> > post_max_size = 100M
> > upload_tmp_dir  =/tmp   ; temporary 
> directory for HTTP
> > uploaded files (will use system default if not specified)
> > /tmp has 1GB free
> > upload_max_filesize = 104857600   ; 100 Meg default 
> limit on file
> > uploads
> >
> > I've verified this through the php info function.
> >
> > I'm running Apache/1.3.9 (Unix) PHP/4.0.3pl1 on a Solaris 2.6 sparc
> server.
> >
> > MS Internet Explorer 5.01 keeps timing out after 30 seconds...
> >
> > Any ideas ?
> >
> > --
> > Gilles-Eric DESCAMPS,   Voice: (408) 545-1130
> > SILICON ACCESS NETWORKS   Fax: (419) 844-7467
> > 
> > 211 River Oaks Parkway  - San Jose, CA, 95134
> > mailto:[EMAIL PROTECTED]
> > "Sed quis custodiet ipsos custodes ?"
> >
> >
> >
> > --
> > 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]