FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


SOLVED::PHP upload_max_filesize





kevinalle
Hi.
I am making a script in which you upload a zip with photos and that goes directly to a photo gallery..

Now, I got to a little problem. In the php.ini file, the upload_max_filesize is set to 2M. I need a bit more than that (5M is OK), but I do not have access to php.ini.
I have tryed using .htaccess to modify this variable but it didnt work. (Just as if i hadnt done anything). maybe I am doing something wrong?
Is there another way to bypass this setting?
Thanks,
K
wumingsden
kevinalle wrote:
Hi.
I am making a script in which you upload a zip with photos and that goes directly to a photo gallery..

Now, I got to a little problem. In the php.ini file, the upload_max_filesize is set to 2M. I need a bit more than that (5M is OK), but I do not have access to php.ini.
I have tryed using .htaccess to modify this variable but it didnt work. (Just as if i hadnt done anything). maybe I am doing something wrong?
Is there another way to bypass this setting?
Thanks,
K


Try the following...

Code:
<FilesMatch "\.(php|html?)$">
php_value upload_max_filesize 5M
</FilesMatch>
kevinalle
OK.
I solved it the following way:

.htaccess
suPHP_ConfigPath /home/domains/domain.com/web/

and I had a php.ini in that directory.

Thanks for your help!!
Related topics
Best PHP forum
[SOLVED] PHP is not working
PHP Question
INSTALL PHP
Upload Limit Increase Request -For Youth Project Site
Problems with PHP-Nuke on Server2
PHP Question - Solved
Tabless layout - footer problems - [solved]
how did you learn about html, php or other languages???
frihost serv2 and joomla = problem :( SOLVED
PHP + GD coder needed - Dynamic Sig Help {SOLVED}
PHP upload Max
php starts downloading, and will not load !solved!
Tiny Tiny RSS suport
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.