POST_MAX_FILESIZE
Moderator: General Moderators
POST_MAX_FILESIZE
What can I do about changing the PHP settings of POST_MAX_FILESIZE, UPLOAD_MAX_FILESIZE on one page or in one folder?
I know ini_set() doesn't work but I also tried a .htaccess file and that doesn't work either
Any other methods?
I know ini_set() doesn't work but I also tried a .htaccess file and that doesn't work either
Any other methods?
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: POST_MAX_FILESIZE
upload_max_filesize is PHP_INI_PERDIR, meaning it can be set in the php.ini file, .htaccess or httpd.conf
I'm not familiar with POST_MAX_FILESIZE: if you mean POST_MAX_SIZE, then that is also PHP_INI_PERDIR
I'm not familiar with POST_MAX_FILESIZE: if you mean POST_MAX_SIZE, then that is also PHP_INI_PERDIR
Re: POST_MAX_FILESIZE
I tested some things and noticed that changing a php setting in htaccess doesn't seem to work for me for some reason
Re: POST_MAX_FILESIZE
couldnt help in detail but i have faced the same problem earlier.. got the solution and posted in my blog..
Have a look at the post
http://fresherlearning.blogspot.com/200 ... s-for.html
Have a look at the post
http://fresherlearning.blogspot.com/200 ... s-for.html
Re: POST_MAX_FILESIZE
I see that it says if you try using .htaccess to change php settings you have to restart the server. What if I have hosting with a company?
Re: POST_MAX_FILESIZE
then its better you go for a php.ini file in the directory where you want to use it rather than .htacess
Re: POST_MAX_FILESIZE
You can use a php.ini file in any directory for that specific directory & subdirectories?
Re: POST_MAX_FILESIZE
Ok, I found this http://www.washington.edu/computing/web ... p-ini.htmlbut when I run a phpinfo() in that directory, it says that the configuration file path is my default file in the original directory of my normal one
Re: POST_MAX_FILESIZE
have you checked that there will be two columns for each of the variable set.. one is local and the other one corresponding to main ini file ? just have a look and see if your amended rules have been displayed in the local values..
Re: POST_MAX_FILESIZE
Checked and they're both the same. Both columns take values from my main file.