ober Posted January 4, 2007 Share Posted January 4, 2007 Ok... so I'm working on my own CMS and I'm trying to upload various file types. The default for uploads is set to 2M, but I've talked to my host and they said as long as I put a copy of the php.ini file in the directory I'm working with, the settings should be localized.So I got the right copy of php.ini and put it in the directory with the necessary changes. After doing that, I have these settings:http://www.whproductions.com/admin/sources/media/iniget.phpini file: http://www.whproductions.com/admin/sources/media/php.iniFor some reason, memory limit won't read anything even though the setting is there.I can upload files less than 2M, but anything over that reports back as having zero for the filesize and my script kicks it out as invalid.I have this in the form: <input type="hidden" name="MAX_FILE_SIZE" value="999000000" />But it still doesn't seem to make a difference no matter how big I make that number.Can someone help me out here? Why can't I upload files bigger than 2M when the settings all seem to be correct? Quote Link to comment https://forums.phpfreaks.com/topic/32877-solved-file-uploads/ Share on other sites More sharing options...
effigy Posted January 4, 2007 Share Posted January 4, 2007 Is the copy of php.ini really taking effect? If you change another setting, say, the short_open_tag, does it work? Quote Link to comment https://forums.phpfreaks.com/topic/32877-solved-file-uploads/#findComment-153059 Share on other sites More sharing options...
ober Posted January 4, 2007 Author Share Posted January 4, 2007 Yes, the settings are taking effect. I just disabled short tags and updated that file. It printed out the PHP instead of processing it. Quote Link to comment https://forums.phpfreaks.com/topic/32877-solved-file-uploads/#findComment-153062 Share on other sites More sharing options...
ober Posted January 4, 2007 Author Share Posted January 4, 2007 Nevermind... ended up being the placement of the file, plus I didn't have to include all the settings... just the ones I wanted to change. Quote Link to comment https://forums.phpfreaks.com/topic/32877-solved-file-uploads/#findComment-153106 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.