[PHP] Max File Upload Size

2006-11-12 Thread Tom Chubb

This is a really stupid question, but I've not been able to find an
answer for it.
I have always thought that your max upload size is limited to the
value in the php.ini file.
However I recently changed a site to a new server which had problems
with memory on one of the image resizing scripts.
I managed to work around it by inserting one line at the start of the
problem script:

ini_set(memory_limit,32M);

Can a similar thing be done with the upload_max_filesize?

Assuming that it can't, what is a good workaround? Using FTP within a script?
This is for uploading an audio file, typically 4MB.
Thanks in advance,

Tom

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



Re: [PHP] Max File Upload Size

2006-11-12 Thread T.Lensselink
Have a look on this page for all the ini settings..
It will also say if it is changeable

http://nl2.php.net/manual/en/ini.php#ini.list


Tom Chubb wrote:
 This is a really stupid question, but I've not been able to find an
 answer for it.
 I have always thought that your max upload size is limited to the
 value in the php.ini file.
 However I recently changed a site to a new server which had problems
 with memory on one of the image resizing scripts.
 I managed to work around it by inserting one line at the start of the
 problem script:
 
 ini_set(memory_limit,32M);
 
 Can a similar thing be done with the upload_max_filesize?
 
 Assuming that it can't, what is a good workaround? Using FTP within a
 script?
 This is for uploading an audio file, typically 4MB.
 Thanks in advance,
 
 Tom
 

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