mazazino Posted August 9, 2007 Share Posted August 9, 2007 So i wanna upload files using ftp functions in php or using using move_uploaded_file()..but the thing is my host has WebShell3 that only allows uploading files less than 2MB..i talked to my web host and they said that they can't allow uploading files more than 2MB large..so i thought of making a .htaccess file but the web host told me its impossible if i'm on windows..so is there another way?..change web host?..im pretty desperate bcoz i need to upload mp3 files,setup files, flash files...and other text documents that will be larger than 2MB..any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/64031-urgent-cause-to-files-larger-than-2mb/ Share on other sites More sharing options...
JJohnsenDK Posted August 9, 2007 Share Posted August 9, 2007 chance webhost Quote Link to comment https://forums.phpfreaks.com/topic/64031-urgent-cause-to-files-larger-than-2mb/#findComment-319160 Share on other sites More sharing options...
mazazino Posted August 9, 2007 Author Share Posted August 9, 2007 i want to make a .htaccess file to change the upload size limit from 2MB to 20MB..but i dont know what code to put in the .htaccess file..and when i'm done, should i upload the file on the web host in the domain of the website im uploading on? Quote Link to comment https://forums.phpfreaks.com/topic/64031-urgent-cause-to-files-larger-than-2mb/#findComment-319275 Share on other sites More sharing options...
wildteen88 Posted August 9, 2007 Share Posted August 9, 2007 so i thought of making a .htaccess file but the web host told me its impossible if i'm on windows What do they mean by that? Do they mean if your site is hosted of off a windows server? Or if you are using a windows PC. .htaccess file can be created/used on windows no problem. However .htaccess files can only work on your website if Apache is installed and is configured to use .htaccess files. If you want to up the upload limit and your host does not allow you to up the limit then I'd say look for a new host that allows you to change PHP settings. Most shared hosts may not allow you to change PHP's settings. You might want to look into dedicated servers. These will allow you to configure the server to how want it to, but they are more expensive. Quote Link to comment https://forums.phpfreaks.com/topic/64031-urgent-cause-to-files-larger-than-2mb/#findComment-319278 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.