Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-09 Thread Maurício Valente
Another thing a noticed was that when I comment the line wich uploads the
file, it still give me the same error, saying server was not found.

I think, maybe, the amount of memory enabled for each object of the form is
limited by 1Mb. I got that idea because I use the following script:

 print "path: $fupload\n";
 print "name: $fupload_name\n";
 print "size: $fupload_size bytes\n";
 print "type: $fupload_type\n\n";
 if ( $fupload_type == "image/gif" )
 {
copy ( $fupload, "$file_dir/$fupload_name") or die ("Couldn't copy");
  }

The fupload is the file object from the previous form page. Maybe if that
object cannot be more than 1mb so it shows that page.

Is it right or I am going crazy with it???

If so (i'm right :) ), where can I change it? I tried to set
LimitRequestFieldSize to 1024000 but when i restarted Apache it said

Iniciando httpd:  Syntax error on line 139 of /etc/httpd/conf/httpd.conf:
LimitRequestFieldsize "1024000" must not exceed the precompiled maximum
of 8190

If this is the way i have to go... what can I do?

Thaks!!!

Maurício Valente
"Mike Ford" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> -Original Message-
> From: Maurício Valente [mailto:[EMAIL PROTECTED]
> Sent: 05 June 2003 21:56
>
> I couldn't find the option max_body_request somebody knows
> where it is?

There's no such option -- you could be looking for post_max_size in php.ini,
or the LimitRequestBody directive in Apache's httpd.conf or a .htaccess
file.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211



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



Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-06 Thread Maurício Valente
I couldn't find the option max_body_request somebody knows where it is?

Thanks!

Maurício Valente


"Mauricio Agp5" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
>
> - Original Message -
> From: "Yves Daemen" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 03, 2003 7:27 PM
> Subject: Re: [PHP] Re: move_uploaded_file > 1MB
>
>
> > No it's not possible, you have to see the error to actually believe it
;-)
> > It goes like this:
> >
> > You have a form with a file input field, you select a file on your HD,
and
> > almost the "exact" moment you press the "submit"-button, you get a "Page
> not
> > found 404".
> >
> > It's very weird when you see it actually, because it's about the last
kind
> > of output you would expect ;-)
> >
> > "Electroteque" <[EMAIL PROTECTED]> schreef in bericht
> > news:[EMAIL PROTECTED]
> > > move_uploaded_file is copying the temp file to a permanent directory
> right
> > ?
> > > thats on the server , check if the temp file is there with
> > > $_POST['tmp_name'] or its size value
> > >
> > > -Original Message-
> > > From: Yves Daemen [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, June 04, 2003 7:44 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Re: move_uploaded_file > 1MB
> > >
> > >
> > > I got the same error some time ago, and I almost went nuts trying to
> find
> > > the cause of this seemingly "insoluble" problem. But it has actually
> > nothing
> > > at all to do with your script or the max_file_size in PHP or the one
you
> > > give with the HTML form. Those are offcourse 2 limits which are
> important,
> > > but there's another limit that counts here, and it's around 1Mb for
> > > standard...
> > >
> > > I can't recall how it was exactly done, but it's some default
> > > max_body_request or something in Linux or Apache (thought it was Linux
> > > though, I encountered the problem on a Redhat distribution, but
someone
> > else
> > > fixed it for me).. Try looking in Linux's or Apache's settings...
> > >
> > >
> > >
> > > "MauríCio Valente" <[EMAIL PROTECTED]> schreef in bericht
> > > news:[EMAIL PROTECTED]
> > > > Hello everybody!
> > > >
> > > > I'm trying to upload a file using the move_uploaded_file function,
> > > everyting
> > > > works fine when the files have less than 1MB but when I upload one
> more
> > > than
> > > > this, IE returns the error The page cannot be displayed and in it's
> > title
> > > > shows Cannot find server. I alreary edit php.ini setting
> > > UPLOAD_MAX_FILESIZE
> > > > to 8388608 (8M), post_max_size = 8388608 and file_uploads = On
> > > (memory_limit
> > > > is 8388608 too).
> > > >
> > > > Someone could help me?
> > > >
> > > > Thanks in advance!
> > > >
> > > > Maurício Valente
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
>
>



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



RE: [PHP] Re: move_uploaded_file > 1MB

2003-06-06 Thread Ford, Mike [LSS]
> -Original Message-
> From: Maurício Valente [mailto:[EMAIL PROTECTED]
> Sent: 05 June 2003 21:56
> 
> I couldn't find the option max_body_request somebody knows 
> where it is?

There's no such option -- you could be looking for post_max_size in php.ini,
or the LimitRequestBody directive in Apache's httpd.conf or a .htaccess
file.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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



Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-05 Thread Maurício Valente
I know... It´s very weird... I can´t understand it. What you describe above
is exactly what is happening.

I can´t see if is created a temp file because the page isn't load after I
click in submit button.

I will try to look for max_body_request in my config files em change it ...

Cya!

Maurício Valente
>
> > No it's not possible, you have to see the error to actually believe it
;-)
> > It goes like this:
> >
> > You have a form with a file input field, you select a file on your HD,
and
> > almost the "exact" moment you press the "submit"-button, you get a "Page
> not
> > found 404".
> >
> > It's very weird when you see it actually, because it's about the last
kind
> > of output you would expect ;-)
> >
> > "Electroteque" <[EMAIL PROTECTED]> schreef in bericht
> > news:[EMAIL PROTECTED]
> > > move_uploaded_file is copying the temp file to a permanent directory
> right
> > ?
> > > thats on the server , check if the temp file is there with
> > > $_POST['tmp_name'] or its size value
> > >
> > > -Original Message-
> > > From: Yves Daemen [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, June 04, 2003 7:44 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Re: move_uploaded_file > 1MB
> > >
> > >
> > > I got the same error some time ago, and I almost went nuts trying to
> find
> > > the cause of this seemingly "insoluble" problem. But it has actually
> > nothing
> > > at all to do with your script or the max_file_size in PHP or the one
you
> > > give with the HTML form. Those are offcourse 2 limits which are
> important,
> > > but there's another limit that counts here, and it's around 1Mb for
> > > standard...
> > >
> > > I can't recall how it was exactly done, but it's some default
> > > max_body_request or something in Linux or Apache (thought it was Linux
> > > though, I encountered the problem on a Redhat distribution, but
someone
> > else
> > > fixed it for me).. Try looking in Linux's or Apache's settings...
> > >
> > >
> > >
> > > "MauríCio Valente" <[EMAIL PROTECTED]> schreef in bericht
> > > news:[EMAIL PROTECTED]
> > > > Hello everybody!
> > > >
> > > > I'm trying to upload a file using the move_uploaded_file function,
> > > everyting
> > > > works fine when the files have less than 1MB but when I upload one
> more
> > > than
> > > > this, IE returns the error The page cannot be displayed and in it's
> > title
> > > > shows Cannot find server. I alreary edit php.ini setting
> > > UPLOAD_MAX_FILESIZE
> > > > to 8388608 (8M), post_max_size = 8388608 and file_uploads = On
> > > (memory_limit
> > > > is 8388608 too).
> > > >
> > > > Someone could help me?
> > > >
> > > > Thanks in advance!
> > > >
> > > > Maurício Valente
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
>
>



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



Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-05 Thread Mauricio AGP5

- Original Message -
From: "Yves Daemen" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 7:27 PM
Subject: Re: [PHP] Re: move_uploaded_file > 1MB


> No it's not possible, you have to see the error to actually believe it ;-)
> It goes like this:
>
> You have a form with a file input field, you select a file on your HD, and
> almost the "exact" moment you press the "submit"-button, you get a "Page
not
> found 404".
>
> It's very weird when you see it actually, because it's about the last kind
> of output you would expect ;-)
>
> "Electroteque" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
> > move_uploaded_file is copying the temp file to a permanent directory
right
> ?
> > thats on the server , check if the temp file is there with
> > $_POST['tmp_name'] or its size value
> >
> > -----Original Message-----
> > From: Yves Daemen [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 04, 2003 7:44 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Re: move_uploaded_file > 1MB
> >
> >
> > I got the same error some time ago, and I almost went nuts trying to
find
> > the cause of this seemingly "insoluble" problem. But it has actually
> nothing
> > at all to do with your script or the max_file_size in PHP or the one you
> > give with the HTML form. Those are offcourse 2 limits which are
important,
> > but there's another limit that counts here, and it's around 1Mb for
> > standard...
> >
> > I can't recall how it was exactly done, but it's some default
> > max_body_request or something in Linux or Apache (thought it was Linux
> > though, I encountered the problem on a Redhat distribution, but someone
> else
> > fixed it for me).. Try looking in Linux's or Apache's settings...
> >
> >
> >
> > "MauríCio Valente" <[EMAIL PROTECTED]> schreef in bericht
> > news:[EMAIL PROTECTED]
> > > Hello everybody!
> > >
> > > I'm trying to upload a file using the move_uploaded_file function,
> > everyting
> > > works fine when the files have less than 1MB but when I upload one
more
> > than
> > > this, IE returns the error The page cannot be displayed and in it's
> title
> > > shows Cannot find server. I alreary edit php.ini setting
> > UPLOAD_MAX_FILESIZE
> > > to 8388608 (8M), post_max_size = 8388608 and file_uploads = On
> > (memory_limit
> > > is 8388608 too).
> > >
> > > Someone could help me?
> > >
> > > Thanks in advance!
> > >
> > > Maurício Valente
> > >
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>



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



Re: [PHP] Re: move_uploaded_file > 1MB

2003-06-04 Thread Yves Daemen
No it's not possible, you have to see the error to actually believe it ;-)
It goes like this:

You have a form with a file input field, you select a file on your HD, and
almost the "exact" moment you press the "submit"-button, you get a "Page not
found 404".

It's very weird when you see it actually, because it's about the last kind
of output you would expect ;-)

"Electroteque" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> move_uploaded_file is copying the temp file to a permanent directory right
?
> thats on the server , check if the temp file is there with
> $_POST['tmp_name'] or its size value
>
> -Original Message-
> From: Yves Daemen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 7:44 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: move_uploaded_file > 1MB
>
>
> I got the same error some time ago, and I almost went nuts trying to find
> the cause of this seemingly "insoluble" problem. But it has actually
nothing
> at all to do with your script or the max_file_size in PHP or the one you
> give with the HTML form. Those are offcourse 2 limits which are important,
> but there's another limit that counts here, and it's around 1Mb for
> standard...
>
> I can't recall how it was exactly done, but it's some default
> max_body_request or something in Linux or Apache (thought it was Linux
> though, I encountered the problem on a Redhat distribution, but someone
else
> fixed it for me).. Try looking in Linux's or Apache's settings...
>
>
>
> "MauríCio Valente" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
> > Hello everybody!
> >
> > I'm trying to upload a file using the move_uploaded_file function,
> everyting
> > works fine when the files have less than 1MB but when I upload one more
> than
> > this, IE returns the error The page cannot be displayed and in it's
title
> > shows Cannot find server. I alreary edit php.ini setting
> UPLOAD_MAX_FILESIZE
> > to 8388608 (8M), post_max_size = 8388608 and file_uploads = On
> (memory_limit
> > is 8388608 too).
> >
> > Someone could help me?
> >
> > Thanks in advance!
> >
> > Maurício Valente
> >
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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



RE: [PHP] Re: move_uploaded_file > 1MB

2003-06-04 Thread electroteque
move_uploaded_file is copying the temp file to a permanent directory right ?
thats on the server , check if the temp file is there with
$_POST['tmp_name'] or its size value

-Original Message-
From: Yves Daemen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 7:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: move_uploaded_file > 1MB


I got the same error some time ago, and I almost went nuts trying to find
the cause of this seemingly "insoluble" problem. But it has actually nothing
at all to do with your script or the max_file_size in PHP or the one you
give with the HTML form. Those are offcourse 2 limits which are important,
but there's another limit that counts here, and it's around 1Mb for
standard...

I can't recall how it was exactly done, but it's some default
max_body_request or something in Linux or Apache (thought it was Linux
though, I encountered the problem on a Redhat distribution, but someone else
fixed it for me).. Try looking in Linux's or Apache's settings...



"MauríCio Valente" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Hello everybody!
>
> I'm trying to upload a file using the move_uploaded_file function,
everyting
> works fine when the files have less than 1MB but when I upload one more
than
> this, IE returns the error The page cannot be displayed and in it's title
> shows Cannot find server. I alreary edit php.ini setting
UPLOAD_MAX_FILESIZE
> to 8388608 (8M), post_max_size = 8388608 and file_uploads = On
(memory_limit
> is 8388608 too).
>
> Someone could help me?
>
> Thanks in advance!
>
> Maurício Valente
>
>
>



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


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



[PHP] Re: move_uploaded_file > 1MB

2003-06-04 Thread Yves Daemen
I got the same error some time ago, and I almost went nuts trying to find
the cause of this seemingly "insoluble" problem. But it has actually nothing
at all to do with your script or the max_file_size in PHP or the one you
give with the HTML form. Those are offcourse 2 limits which are important,
but there's another limit that counts here, and it's around 1Mb for
standard...

I can't recall how it was exactly done, but it's some default
max_body_request or something in Linux or Apache (thought it was Linux
though, I encountered the problem on a Redhat distribution, but someone else
fixed it for me).. Try looking in Linux's or Apache's settings...



"MauríCio Valente" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Hello everybody!
>
> I'm trying to upload a file using the move_uploaded_file function,
everyting
> works fine when the files have less than 1MB but when I upload one more
than
> this, IE returns the error The page cannot be displayed and in it's title
> shows Cannot find server. I alreary edit php.ini setting
UPLOAD_MAX_FILESIZE
> to 8388608 (8M), post_max_size = 8388608 and file_uploads = On
(memory_limit
> is 8388608 too).
>
> Someone could help me?
>
> Thanks in advance!
>
> Maurício Valente
>
>
>



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