PHP INI Set .HTACCESS?
Posted by: JustinMs66
Posted on: 2007-03-24 12:34:00
ok so i need to allow bigger uploads in my php.ini file.
i have tried more than 10 times over the past few months to try and compile my own version of php: NO SUCCESS, i completely fail at it.
i recently heard that you can simply achieve this with a .htaccess file.
so i created a ".htaccess" file in my /csscobalt.com/ web directory and put this into it:
php_value upload_max_filesize 100M
php_value max_execution_time 800
php_value post_max_size 100M
php_value max_input_time 100
php_value memory_limit 120M
yet when i try to upload a file that is greater than 8MB, it simply stops working!
am i doing something wrong? can anyone help?
-edit-
i also just tried putting this at the top of my index.php:
<?php
ini_set('upload_max_filesize','100M');
ini_set('max_execution_time', 800);
ini_set('post_max_size','100M');
ini_set('max_input_time', 100);
ini_set('memory_limit','120M');
?>
again, same thing happens!
-edit-
i created a file with phpinfo() and it still has the old values.
www.csscobalt.com | Free Image/File Hosting!