rock_xl1 Posted January 26, 2008 Share Posted January 26, 2008 HI ppL! So i have a php code that upload files by ftp to my host. I put the domain, username and password. Ok.. But it steel not upload files bigger than 10MB... Say time out, our don´t appear nothing... i don´t know the problem... any one knows why don´t upload files bigger than 10mb??? Thanks! Rafael Rocha - Portugal - Europe Quote Link to comment https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/ Share on other sites More sharing options...
interpim Posted January 26, 2008 Share Posted January 26, 2008 your php.ini file needs to be edited to allow for larger files... Don't quote me on this because I am going off the top of my head but I think it is Max_upload_size Edit that to what you want your max upload to be. Quote Link to comment https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449844 Share on other sites More sharing options...
rock_xl1 Posted January 26, 2008 Author Share Posted January 26, 2008 your php.ini file needs to be edited to allow for larger files... Don't quote me on this because I am going off the top of my head but I think it is Max_upload_size Edit that to what you want your max upload to be. Thanks! And do you know where i find this file in my host? and the fuction to put more max_upload_size ? Quote Link to comment https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449847 Share on other sites More sharing options...
legohead6 Posted January 26, 2008 Share Posted January 26, 2008 it will be in your root folder, if you dont see it create it php.ini then set these values to whatever you would like here is mine for example upload_max_filesize = 100M post_max_size = 1000M you probably dont need that much, mine is for moie uploading... you will need to close out all open explorers and restart for it to take effect after its been uploaded, i found refreshing the page doesnt work when editing this file. Quote Link to comment https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449881 Share on other sites More sharing options...
rock_xl1 Posted January 26, 2008 Author Share Posted January 26, 2008 it will be in your root folder, if you dont see it create it php.ini then set these values to whatever you would like here is mine for example upload_max_filesize = 100M post_max_size = 1000M you probably dont need that much, mine is for moie uploading... you will need to close out all open explorers and restart for it to take effect after its been uploaded, i found refreshing the page doesnt work when editing this file. In the file php.ini just: upload_max_filesize = 100M post_max_size = 1000M no more tags? Quote Link to comment https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449883 Share on other sites More sharing options...
legohead6 Posted January 26, 2008 Share Posted January 26, 2008 no, nothing else you need, if the rest of your ini file is there dont delete it, but if you are creating one thats all you need Quote Link to comment https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449885 Share on other sites More sharing options...
legohead6 Posted January 26, 2008 Share Posted January 26, 2008 you may also need to edit htaccess if that doesnt work, i found it worked without editing htaccess.. here is the response i got when i asked the same question You can change the upload file size by doing the following: Put the following in a regular text file named php.ini in the same folder as the upload script: upload_max_filesize = 5M post_max_size = 5M Replace the 5 with whatever size you want. If you are letting other people upload, a size cap protects your storage space from abuse/overuse. If you want all your site folders to have the same setting, put the php.ini file in public_html folder. You will then need to add this line to a .htaccess file: (Please replace "yourusername" with your cpanel user name an add to the end of the comand line the folder(s) to the location of the php.ini file - Also there is a space between path and /home) suPHP_ConfigPath /home/Yourusername/public_html -- Quote Link to comment https://forums.phpfreaks.com/topic/87923-ftp-upload-time-out/#findComment-449892 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.