software development


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 / 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?

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!

i created a file with phpinfo() and it still has the old values. | Free Image/File Hosting!


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).


i love you

THANK YOU!!! | Free Image/File Hosting!