Thanks for the suggestion.  I'll try ini_set although I'm not yet certain of
how to use it.
It still seems odd that I can't simply set upload_max_filesize to whatever
value I want.

I checked again and post_max_size is not in my php.ini, but perhaps I should
just add it.

Also, I was wrong before - I do have a directive for memory_limit.  It is 8M

Regardless, this doesn't explain why I can't upload a file that exceeds 2M,
except that I don't seem to be able to reset upload_max_filesize to greater
than 2M.

If you have any other thoughts, they are much appreciated.

Roger

-----Original Message-----
From: David Banks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 5:57 PM
To: 'Roger Lewis'
Subject: RE: [PHP] Max File Size

post_max_size *should* be in php.ini, I think....

I ususally leave these things up to our sysop ;)

Checking back to when I was coding for file uploading, I see that there were
4 settings to ensure were 'high enough'

max_execution_time
memory_limit
post_max_size
upload_max_filesize

I *think* that ini_set may be used to change these settings, but I could be
wrong.

Cheers
Dave

>-----Original Message-----
>From: Roger Lewis [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, December 04, 2002 5:48 PM
>To: David Banks
>Cc: Php-General
>Subject: RE: [PHP] Max File Size
>
>
>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

Reply via email to