Re: [PHP] upload_max_filesize

2006-01-25 Thread Richard Correia
check MAX_FILE_SIZE attribute of file tag.

Also does your webserver impose any file upload limit?

Thanks
Richard


On 1/25/06, Daniel Lahey [EMAIL PROTECTED] wrote:

 A client has started experiencing problems with uploading files
 larger than the default 2M set in php.ini.  The problem only started
 occurring a few weeks or so ago, and I cannot figure out how to get
 around it.  I have a php.ini file in the /public_html folder that reads:

 post_max_size 8388608
 upload_max_filesize 8388608

 I've also tried peppering the code with calls to ini_set
 ('upload_max_filesize', '8388608');   In desparation, I've also tried
 a .htaccess file that reads:



Re: [PHP] upload_max_filesize problem

2004-03-18 Thread Brian V Bonini
On Thu, 2004-03-18 at 14:06, Aaron Doogs wrote:
 I have changed upload_max_filesize in my php.ini, but the default of 2M is
 still being recognized.  I restarted the apache server, ran a script to
 output phpinfo() and it still says 2M for upload_max_filesize.  Yet when I
 open php.ini is has 8M as the upload_max_filesize.  And, I am editting the
 php.ini that phpinfo() has as the configuration path.
 
 I am running SuSE Linux 9.0, apache 1.3.29, and php 4.3.4.
 
 Any suggestions as to why my changes are not being recognized?
 

Not to cite the obvious but, are you sure you do not have it capped off
in your form?


-- 
BrianGnuPG - KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
==
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

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



Re: [PHP] upload_max_filesize not honored?

2003-10-29 Thread Marek Kilimajer
upload_max_filesize is INI_SYSTEM, that means it is not honored in your 
code. Set it the same way you set post_max_size

David T-G wrote:
Hi, all --

I am implementing a picture upload page which will accept single pictures
or zips of pictures, and I can't send anything bigger than 2M.
Because post_max_size must be set in php.ini or httpd.conf I have

  php_admin_value post_max_size 128M

set for my site, and in my code I have

  ini_set('upload_max_filesize',128M) ;
  ini_set('memory_limit',128M) ;
  ini_set('max_execution_time',300) ;
(do I need memory_limit set, or does temp file storage not impact
memory?), and in my form I have
  input name='MAX_FILE_SIZE' type='hidden' value='2'

all to ensure that I can upload.  I can happily upload individual 800k
files to about 4.6M (I only have half a dozen on hand :-) but I cannot
upload even a single zip file larger than 2M (though smaller zip files
work fine).  phpinfo() reports 128M for my post_max and max_filesize and
everything seems good to me.
When I try a smaller zip file, $_FILES[uploads][type][$k] properly
contains application/x-zip, but when I try a larger one it is empty
(in fact, the only thing with value, IIRC, is the name); the temp file
gets to a few bytes over 2M and then disappears.  If I put such a zip
file between two smaller files I see full entries for 0 and 2 while 1
(the zip file) is empty save for the name -- and so the script continues
on to get other files but never gets the big one.
Any ideas?

TIA  HAND

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


Re: [PHP] upload_max_filesize not honored?

2003-10-29 Thread David T-G
Marek, et al --

...and then Marek Kilimajer said...
% 
% upload_max_filesize is INI_SYSTEM, that means it is not honored in your 

*slaps forehead*  Why, so it is.  That certainly does explain things.

It's interesting to me, though, is that phpinfo() reported it as 128M
even when set from the code, though it obviously wasn't honored.  Why
would it say that when it doesn't mean it?


% code. Set it the same way you set post_max_size

Done, and amazingly enough it works just right now :-)


Thanks  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


RE: [PHP] upload_max_filesize + ini_set

2002-12-23 Thread Ford, Mike [LSS]
 -Original Message-
 From: electroteque [mailto:[EMAIL PROTECTED]]
 Sent: 20 December 2002 19:34
 
 and i just tested the script and it let me upload a 2.5M 
 file.

Well, I was just quoting from the manual, so that sounds worthy of a bug
report in itself -- either the manual is wrong, or the behaviour of PHP is!

   so there must
 be a way to put it in the page aswell

No, there mustn't -- this I am sure about.  As I said before:

 As all file upload activity takes place before 
 your script even *starts* executing, you can't use
 ini_set on this [upload_max_filesize].

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] upload_max_filesize + ini_set

2002-12-23 Thread Dan Rossi
maybe someone would like to report it , my reports either get ignored or are
false alarms , i am creating a function to get the line upload_max_filesize
and change its value in .htaccess its the only way , and this is everytime i
load the uploader page

-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 11:40 PM
To: 'electroteque'; [EMAIL PROTECTED]
Subject: RE: [PHP] upload_max_filesize + ini_set


 -Original Message-
 From: electroteque [mailto:[EMAIL PROTECTED]]
 Sent: 20 December 2002 19:34

 and i just tested the script and it let me upload a 2.5M
 file.

Well, I was just quoting from the manual, so that sounds worthy of a bug
report in itself -- either the manual is wrong, or the behaviour of PHP is!

   so there must
 be a way to put it in the page aswell

No, there mustn't -- this I am sure about.  As I said before:

 As all file upload activity takes place before
 your script even *starts* executing, you can't use
 ini_set on this [upload_max_filesize].

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] upload_max_filesize + ini_set

2002-12-20 Thread Ford, Mike [LSS]
 -Original Message-
 From: electroteque [mailto:[EMAIL PROTECTED]]
 Sent: 20 December 2002 11:35
 To: [EMAIL PROTECTED]
 Subject: [PHP] upload_max_filesize + ini_set
 
 
 is there a way to get this setting to work without hard 
 setting in htaccess
 ? i'd like to be able to dynamically set the max filesize via 
 a defines
 setting and ini_set rather than statically in htaccess

No can do -- as all file upload activity takes place before your script even
starts executing, you can't use ini_set on this.

In fact, upload_max_filesize is listed in
http://www.php.net/manual/en/function.ini-set.php as being a PHP_INI_SYSTEM
level directive, which means it can be set only in php.ini or httpd.conf (if
using Apache) -- it's not even settable in .htaccess files.

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] upload_max_filesize + ini_set

2002-12-20 Thread electroteque
here is a sample htaccess file with ini rules

php_value register_globals Off
php_value track_vars On
php_value arg_separator.output amp;
php_value arg_separator.input 
php_value upload_max_filesize 3M

i get 3M returned as the upload_max_filesize so it does work
Mike Ford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  -Original Message-
  From: electroteque [mailto:[EMAIL PROTECTED]]
  Sent: 20 December 2002 11:35
  To: [EMAIL PROTECTED]
  Subject: [PHP] upload_max_filesize + ini_set
 
 
  is there a way to get this setting to work without hard
  setting in htaccess
  ? i'd like to be able to dynamically set the max filesize via
  a defines
  setting and ini_set rather than statically in htaccess

 No can do -- as all file upload activity takes place before your script
even
 starts executing, you can't use ini_set on this.

 In fact, upload_max_filesize is listed in
 http://www.php.net/manual/en/function.ini-set.php as being a
PHP_INI_SYSTEM
 level directive, which means it can be set only in php.ini or httpd.conf
(if
 using Apache) -- it's not even settable in .htaccess files.

 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] upload_max_filesize + ini_set

2002-12-20 Thread electroteque
and i just tested the script and it let me upload a 2.5M file. so there must
be a way to put it in the page aswell
Mike Ford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  -Original Message-
  From: electroteque [mailto:[EMAIL PROTECTED]]
  Sent: 20 December 2002 11:35
  To: [EMAIL PROTECTED]
  Subject: [PHP] upload_max_filesize + ini_set
 
 
  is there a way to get this setting to work without hard
  setting in htaccess
  ? i'd like to be able to dynamically set the max filesize via
  a defines
  setting and ini_set rather than statically in htaccess

 No can do -- as all file upload activity takes place before your script
even
 starts executing, you can't use ini_set on this.

 In fact, upload_max_filesize is listed in
 http://www.php.net/manual/en/function.ini-set.php as being a
PHP_INI_SYSTEM
 level directive, which means it can be set only in php.ini or httpd.conf
(if
 using Apache) -- it's not even settable in .htaccess files.

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

2001-02-01 Thread David Smith

Sorry, that isn't very detailed but I appreciate your help. Where can I find
php.ini?


- Original Message -
From: Jonatan Bagge [EMAIL PROTECTED]
To: David Smith [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 6:41 AM
Subject: Re: [PHP] upload_max_filesize


 David Smith wrote:

  Can anyone explain in detail how I can increase the upload_max_filesize
to 5 meg instead of the default 2 meg?
 
  Thanks,
 
  David

 php.ini



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

2001-02-01 Thread Jon Haworth

It's usually in your system root, but you could have put it somewhere else
when you installed PHP.

If you're on Windows it's liable to be in \windows\system,
\windows\system32, \winnt\system, or \winnt\system32. Most OSes come with a
Find Files command these days (just a thought).

Once you have found it, open it in your favourite text editor. Search for
"upload_max_filesize" and set it to whatever you like. Save it. Tell your
boss you'll have to spend all afternoon fixing this bug, then spend the rest
of the day reading Dilbert cartoons.


HTH
Jon


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2001 11:45
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] upload_max_filesize


Sorry, that isn't very detailed but I appreciate your help. Where can I find
php.ini?


- Original Message -
From: Jonatan Bagge [EMAIL PROTECTED]
To: David Smith [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 6:41 AM
Subject: Re: [PHP] upload_max_filesize


 David Smith wrote:

  Can anyone explain in detail how I can increase the upload_max_filesize
to 5 meg instead of the default 2 meg?
 
  Thanks,
 
  David

 php.ini



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

2001-02-01 Thread WreckRman2

Sure, it is a dedicated RaQ3 server, running Linux/Apache, in which I didn't
do the PHP install myself. I believe it not to be a dummy account because it
shows:

* NOTICE TO ROOT USER: Changes to system files may affect   *
* your warranty. Please consult your warranty card for details. *
*   *
* http://www.cobaltnet.com

at login... Below is my phpinfo script.

http://www.indywebdesign.com/phpinfo.php

Thanks...

- Original Message -
From: Jon Haworth [EMAIL PROTECTED]
To: 'WreckRman2' [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 11:23 AM
Subject: RE: [PHP] upload_max_filesize


 Where did you put it when you installed PHP?

 If you didn't install PHP, but you're telnetting into a remote server, are
 you sure it's not showing you a dummy shell? You may have to ask your
 hosting company nicely to make the change for you.

 Can we have some more details of your OS, configuration, and whether
you're
 responsible for the PHP installation?

 Cheers
 Jon



 -Original Message-
 From: WreckRman2 [mailto:[EMAIL PROTECTED]]
 Sent: 01 February 2001 16:07
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] upload_max_filesize


 Actually it isn't on a windows system. Looking at my phpinfp.php file it
 shows "Configuration File (php.ini) Path" as /usr/local/lib but I see no
 file called php.ini in there using ftp or telnet. Any ideas?

 David

 - Original Message -
 From: Jon Haworth [EMAIL PROTECTED]
 To: 'David Smith' [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Thursday, February 01, 2001 8:07 AM
 Subject: RE: [PHP] upload_max_filesize


  It's usually in your system root, but you could have put it somewhere
else
  when you installed PHP.
 
  If you're on Windows it's liable to be in \windows\system,
  \windows\system32, \winnt\system, or \winnt\system32. Most OSes come
with
 a
  Find Files command these days (just a thought).
 
  Once you have found it, open it in your favourite text editor. Search
for
  "upload_max_filesize" and set it to whatever you like. Save it. Tell
your
  boss you'll have to spend all afternoon fixing this bug, then spend the
 rest
  of the day reading Dilbert cartoons.
 
 
  HTH
  Jon
 
 
  -Original Message-
  From: David Smith [mailto:[EMAIL PROTECTED]]
  Sent: 01 February 2001 11:45
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: [PHP] upload_max_filesize
 
 
  Sorry, that isn't very detailed but I appreciate your help. Where can I
 find
  php.ini?
 
 
  - Original Message -
  From: Jonatan Bagge [EMAIL PROTECTED]
  To: David Smith [EMAIL PROTECTED]
  Sent: Thursday, February 01, 2001 6:41 AM
  Subject: Re: [PHP] upload_max_filesize
 
 
   David Smith wrote:
  
Can anyone explain in detail how I can increase the
 upload_max_filesize
  to 5 meg instead of the default 2 meg?
   
Thanks,
   
David
  
   php.ini
  
 
 
  --
  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 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] upload_max_filesize

2001-02-01 Thread WreckRman2

Actually it isn't on a windows system. Looking at my phpinfp.php file it
shows "Configuration File (php.ini) Path" as /usr/local/lib but I see no
file called php.ini in there using ftp or telnet. Any ideas?

David

- Original Message -
From: Jon Haworth [EMAIL PROTECTED]
To: 'David Smith' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 8:07 AM
Subject: RE: [PHP] upload_max_filesize


 It's usually in your system root, but you could have put it somewhere else
 when you installed PHP.

 If you're on Windows it's liable to be in \windows\system,
 \windows\system32, \winnt\system, or \winnt\system32. Most OSes come with
a
 Find Files command these days (just a thought).

 Once you have found it, open it in your favourite text editor. Search for
 "upload_max_filesize" and set it to whatever you like. Save it. Tell your
 boss you'll have to spend all afternoon fixing this bug, then spend the
rest
 of the day reading Dilbert cartoons.


 HTH
 Jon


 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]]
 Sent: 01 February 2001 11:45
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP] upload_max_filesize


 Sorry, that isn't very detailed but I appreciate your help. Where can I
find
 php.ini?


 - Original Message -
 From: Jonatan Bagge [EMAIL PROTECTED]
 To: David Smith [EMAIL PROTECTED]
 Sent: Thursday, February 01, 2001 6:41 AM
 Subject: Re: [PHP] upload_max_filesize


  David Smith wrote:
 
   Can anyone explain in detail how I can increase the
upload_max_filesize
 to 5 meg instead of the default 2 meg?
  
   Thanks,
  
   David
 
  php.ini
 


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

2001-02-01 Thread David Robley

On Fri,  2 Feb 2001 02:37, WreckRman2 wrote:
 Actually it isn't on a windows system. Looking at my phpinfp.php file it
 shows "Configuration File (php.ini) Path" as /usr/local/lib but I see no
 file called php.ini in there using ftp or telnet. Any ideas?

 David

php.ini is not installed - you need to modify php.ini-dist or 
php.ini-optimized from the top level directory of your source and place it 
in the directory you have specified at compile (if you did) or the the 
default (/usr/local/lib) location.

-- 
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

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