sudip Posted January 5, 2010 Share Posted January 5, 2010 I have installed Xampp for windows. I have configured into php.ini the upload_max_filesize = 32M. So i can upload maximum file size will be 32MB. But I can not to upload. actually my file size was 21MB. But I can not to upload. So please tell me how to upload large file using php? I was print using print_r($_FILES). But its not given any result. Just given Array(). But for small file its printed the files output. Quote Link to comment https://forums.phpfreaks.com/topic/187210-how-to-upload-large-file-using-php-code/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 5, 2010 Share Posted January 5, 2010 http://us2.php.net/manual/en/ini.core.php#ini.post-max-size Quote Link to comment https://forums.phpfreaks.com/topic/187210-how-to-upload-large-file-using-php-code/#findComment-988624 Share on other sites More sharing options...
sudip Posted January 5, 2010 Author Share Posted January 5, 2010 Its still given same error. So how to solve the problem? Else if you have any idea so can tell me. Quote Link to comment https://forums.phpfreaks.com/topic/187210-how-to-upload-large-file-using-php-code/#findComment-988638 Share on other sites More sharing options...
PFMaBiSmAd Posted January 5, 2010 Share Posted January 5, 2010 Its still given same error Did you verify that the setting was changed using a phpinfo(); statement? If the setting did not change, then you either did not change the correct php.ini or you did not stop and start your web server to get any change made to the php.ini to take effect. Quote Link to comment https://forums.phpfreaks.com/topic/187210-how-to-upload-large-file-using-php-code/#findComment-988639 Share on other sites More sharing options...
Deoctor Posted January 5, 2010 Share Posted January 5, 2010 try modifying these values in the php.ini file post_max_size upload_max_filesize make them the max size.. after change u need to restart the apache service if u have the html form in ur code mention this <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Quote Link to comment https://forums.phpfreaks.com/topic/187210-how-to-upload-large-file-using-php-code/#findComment-988640 Share on other sites More sharing options...
sudip Posted January 5, 2010 Author Share Posted January 5, 2010 Thanks to everybody because its now working to my local machine. but now how to solve into webserver. My webserver is linux OS. Just tell me where I will change into linux webserver. Quote Link to comment https://forums.phpfreaks.com/topic/187210-how-to-upload-large-file-using-php-code/#findComment-988648 Share on other sites More sharing options...
oni-kun Posted January 5, 2010 Share Posted January 5, 2010 It should be the same, Most webhosts allow you to use .htaccess to change values for php without the need of editing the master php.ini, Else you can use this function at the top of your script: ini_set Quote Link to comment https://forums.phpfreaks.com/topic/187210-how-to-upload-large-file-using-php-code/#findComment-988650 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.