Hosting server wont accpet htaccess, need to increase maximu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
itpvision
Forum Newbie
Posts: 5
Joined: Fri Jun 20, 2008 5:03 am

Hosting server wont accpet htaccess, need to increase maximu

Post 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
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

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

Post 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()
Post Reply