Hi, i'm stuck at creating an upload system in my site. I'm creating a site, where all the users can upload flash games. I created the system, and i found a bug. Users can't upload files biger than 10mb... I read that i can fix that by changing something in php.ini , but i can't find how to change it in my host, and i dont actualy like that way... Can i somehow fix it by adding a script to my upload.php?? If that's imposible, please explain me more about php.ini changing
The max upload values can only be set within php.ini, .htaccess or httpd.conf. If you don't want to, or don't have access to the php.ini, try this within a root .htaccess: php_value upload_max_filesize 50M php_value post_max_size 50M
You need to edit the lines that mfscript suggested. However, on todays servers it's not possible to set the max file upload using .htaccess. And PHPSuexec is required to run local php.ini.