Alan in Toronto said:
> SquirrelMail 1.4.2
> PHP 4.3.4
> UWIMAPD (IMAP4rev1 2002.325-cpanel)
> Apache 1.3.29
> RedHat 7.3
>
> Hello. I don't have access to the server's php.ini file, since that is
> controlled by my web host. I'd like to make some changes though, to enable
> such things as larger attachment uploads. I was reading about using the
> ini_set() function to locally modify php.ini values without affecting the
> whole server: http://www.phpfreaks.com/tutorials/10/0.php
>
> But, on another site I read this caveat:
> " Many settings, although they do get set, have no influence in your
> script.... like upload_max_filesize will get set but uploaded files are
> already passed to your PHP script before the settings are changed. Also
> other settings, set by ini_set(), may be to late because of this
> (post_max_size etc.). "
>
> Can anyone tell me if ini_set() can be useful for modifying values that
> limit SquirrelMail, such as upload_max_filesize, memory_limit, and
> post_max_size, or whether it will have no affect like that quote said?

I thought I'd answer my own post, in case anyone find this when searching
the archives for a similar solution.

I read http://www.squirrelmail.org/wiki/en_US/AttachmentSize, which says
that to alter the maximum attachment size you must change three values:
  [memory_limit]
  [post_max_size]
  [upload_max_filesize]

However, I tried simply creating an .htaccess file in my SM directory,
containing just the following line:

  php_value upload_max_filesize 10M

This has worked to increase the maximum attachment size from 2M to 10M. I
successfully attached and uploaded a 8.7 MB file.

Do I need to do anything else? Why does the Wiki state that those other
two values also need to be changed?






-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to