Current time: 04-18-2014, 11:53 PM Hello There, Guest! (LoginRegister)

Post Reply 
PHP INI Set .HTACCESS?
03-24-2007, 12:34 PM
Post: #1
PHP INI Set .HTACCESS?
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!
Find all posts by this user
Quote this message in a reply
03-24-2007, 01:10 PM
Post: #2
PHP INI Set .HTACCESS?
You can't do it via htaccess, however you could just use a custom php.ini file (no compiling of a custom php install necessary).

http://wiki.dreamhost.com/index.php/PHP.ini
Visit this user's website Find all posts by this user
Quote this message in a reply
03-24-2007, 01:20 PM
Post: #3
PHP INI Set .HTACCESS?
i love you

THANK YOU!!!!

www.csscobalt.com | Free Image/File Hosting!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: