Page 1 of 1

Hosting server wont accpet htaccess, need to increase maximu

Posted: Sun Jun 22, 2008 5:51 am
by itpvision
Hello
I need to increase the maximum upload file limit, I used .htacess:

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200

Whenever I upload .htaccess to the hosting server, all the site fails, whenever I delete it, the site works fine, I need an alternative to set maximum file upload

Help appreciated
Many Thanks

Re: Hosting server wont accpet htaccess, need to increase maximu

Posted: Sun Jun 22, 2008 7:32 am
by Kieran Huggins
Your host may not support overriding with .htaccess - or it may just be fickle about file encoding or some nonsense. I've had more than a little trouble with minutia like this in the past.

An alternative is to try setting the value in your script with ini_set()