FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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


Last edited by kevinalle on Mon Mar 19, 2007 8:19 pm; edited 1 time in total
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!!
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-2007 Frihost, forums powered by phpBB.