Re: upload_max_filesize + ini_set

From: Date: Fri, 20 Dec 2002 19:34:18 +0000
Subject: Re: upload_max_filesize + ini_set
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129014@lists.php.net to get a copy of this message
and i just tested the script and it let me upload a 2.5M file. so there must be a way to put it in the page aswell "Mike Ford" <M.Ford@lmu.ac.uk> wrote in message news:7E070107F405BA4790C43526CC4985A10132AD1E@lis-exchange3.lmu.ac.uk... > > -----Original Message----- > > From: electroteque [mailto:daniel@electroteque.org] > > Sent: 20 December 2002 11:35 > > To: php-general@lists.php.net > > Subject: [PHP] upload_max_filesize + ini_set > > > > > > is there a way to get this setting to work without hard > > setting in htaccess > > ? i'd like to be able to dynamically set the max filesize via > > a defines > > setting and ini_set rather than statically in htaccess > > No can do -- as all file upload activity takes place before your script even > starts executing, you can't use ini_set on this. > > In fact, upload_max_filesize is listed in > http://www.php.net/manual/en/function.ini-set.php as being a PHP_INI_SYSTEM > level directive, which means it can be set only in php.ini or httpd.conf (if > using Apache) -- it's not even settable in .htaccess files. > > Cheers! > > Mike > > --------------------------------------------------------------------- > Mike Ford, Electronic Information Services Adviser, > Learning Support Services, Learning & Information Services, > JG125, James Graham Building, Leeds Metropolitan University, > Beckett Park, LEEDS, LS6 3QS, United Kingdom > Email: m.ford@lmu.ac.uk > Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#129014) next »