php.ini & uploading files

This is a discussion on php.ini & uploading files within the PHP Language forums, part of the PHP Programming Forums category; Hello, I have a problem: I want to increase the "upload_max_filesize" to upload bigger than 2Mb files. I ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-15-2004
Federico
 
Posts: n/a
Default php.ini & uploading files

Hello,

I have a problem: I want to increase the "upload_max_filesize" to
upload bigger than 2Mb files. I have modified the php.ini file, but
php continues applying the previos 2Mb limit. What I'm doing wrong,
please?

Thanks in advance,
Federico
Reply With Quote
  #2 (permalink)  
Old 01-15-2004
Shawn Wilson
 
Posts: n/a
Default Re: php.ini & uploading files

Federico wrote:
>
> Hello,
>
> I have a problem: I want to increase the "upload_max_filesize" to
> upload bigger than 2Mb files. I have modified the php.ini file, but
> php continues applying the previos 2Mb limit. What I'm doing wrong,
> please?



From php.net manual:

post_max_size integer
Sets max size of post data allowed. This setting also affects file upload. To
upload large files, this value must be larger than upload_max_filesize.

If memory limit is enabled by your configure script, memory_limit also affects
file uploading. Generally speaking, memory_limit should be larger than
post_max_size.

Don't know if that helps or not,
Shawn
--
Shawn Wilson
shawn@glassgiant.com
http://www.glassgiant.com

I have a spam filter. Please include "PHP" in the
subject line to ensure I'll get your message.
Reply With Quote
  #3 (permalink)  
Old 01-16-2004
Chung Leong
 
Posts: n/a
Default Re: php.ini & uploading files

Make sure you're editing the right file. It's especially easy to get it
wrong on Windows. When I make a change to php.ini, I usually do a <?
phpinfo() ?> to ensure the changes have taken effect.

Uzytkownik "Federico" <fedeabascal@yahoo.es> napisal w wiadomosci
news:3c22661.0401150725.2aac453b@posting.google.co m...
> Hello,
>
> I have a problem: I want to increase the "upload_max_filesize" to
> upload bigger than 2Mb files. I have modified the php.ini file, but
> php continues applying the previos 2Mb limit. What I'm doing wrong,
> please?
>
> Thanks in advance,
> Federico



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0