>From phpinfo.php I see that post_max_size is 8M; however, I don't find a setting for this in php.ini. Although I can live with 8M, can you tell me how to change this setting. I am using php 4.0.6
Also I understand that memory_limit may be affecting things, but I don't seem to have access to this setting. Roger -----Original Message----- From: David Banks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 5:22 PM To: 'Roger Lewis' Subject: RE: [PHP] Max File Size Don't forget to increase post_max_size as well See also http://www.php.net/manual/en/features.file-upload.php >-----Original Message----- >From: Roger Lewis [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, December 04, 2002 5:00 PM >To: Php-General >Cc: [EMAIL PROTECTED] >Subject: RE: [PHP] Max File Size > > >On Wednesday, December 04, 2002 3:03 PM, I wrote > >Hi, > >I'm having a problem uploading files greater than 2mb, but I >believe the >problem is related to php.ini. > >UPLOAD_MAX_FILESIZE in my submit form is set to 10000000. Also, I set >upload_max_filesize = 10000000 in php.ini. After changing php.ini, I >stopped and then started httpd. I thought this was enough to >be able to >upload files greater than the default 2mb. > >Even though php.ini has been changed, when I check >phpinfo.php, I see that >upload_max_filesize is still 2mb and my file is not being uploaded. > >Can anyone tell me what I am missing here. > >Thanks, > >Roger Lewis > > > >Further to my original post, to check if my php.ini was being >recognized I >temporarily changed some other configuration options, i.e. >register_globals >and include_path, and reloaded phpinfo.php. All options, except for >upload_max_filesize, were changed per my input. Does anyone know why >upload_max_filesize is not being reset? >The following is from my php.ini showing upload_max_filesize = 7500000: >;;;;;;;;;;;;;;;;;;;;;;;;; >; Paths and Directories ; >;;;;;;;;;;;;;;;;;;;;;;;;; > >include_path = ".:/home/sites/home/users/demo/phpinclude" > ; UNIX: >"/path1:/path2" Windows: "\path1;\path2" > >doc_root = >; the root of the php pages, used only if nonempty > >user_dir = >; the directory under which php opens the script using >/~username, used only if nonempty > >;upload_tmp_dir = ; temporary >directory for HTTP uploaded >files (will use system default if not specified) > >upload_max_filesize = 7500000 ; 2 Meg default limit on >file uploads > >extension_dir = /usr/lib/apache/php > ; directory in which the loadable >extensions (modules) reside > >Thanks for any help on this, >Roger > > > >-- >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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php