[thelist] file upload class problems
Paul Bennett
Paul.Bennett at mch.govt.nz
Tue Sep 1 14:51:34 CDT 2009
Hi Nan,
It's not always convenient (or desired) to change php.ini settings
directly, as these affect *all* php scripts on the server.
You can do this on a script by script (or application by application)
basis by using ini_set()
http://nz.php.net/manual/en/function.ini-set.php
For example, for the scripts you're using, you could add something like
this in the class constructor instead of needing to alter php.ini
directly:
ini_set('memory_limit', '100M');
ini_set('post_max_size', '100M');
ini_set('file_uploads', 'On');
ini_set('upload_max_filesize', '100M');
:)
Paul
www.mch.govt.nz - www.teara.govt.nz - www.nzhistory.net.nz - www.nzlive.com
The information contained in this email message does not necessarily reflect the views of the Ministry for Culture and Heritage and may contain information that is confidential or subject to legal privilege. If you are not the intended recipient and receive this email in error: please notify the Ministry for Culture and Heritage by return email or telephone (64 4 499 4229) and delete this email; you must not use, disclose, copy or distribute this message or the information in it.
PLEASE CONSIDER THE ENVIRONMENT BEFORE YOU PRINT THIS EMAIL
More information about the thelist
mailing list