Ok, I've run into this myself. Two possible reasons: 1. PHP 2. MySQL NOT POSSIBLE REASON: execution time. You only get to execution time after uploading the data, so that doesn't count - you may take long to send the actual file, not afterwards.
Ok, the two possibilities: 1. PHP php.ini, as you suggested may be the problem (i.e. you don't allow PHP to use more than 6 megs memory, so it can't store the larger-than-6-megs file you upload). However, the default PHP setting is 8 MB in this regard, so you shouldn't have problems at 6 megs. 2. MySQL If you use MySQL then there's a limit for query size - I suppose you _do_ something with that file, and since that usually is storing it into a database and the general database system of choice is MySQL, I think my suggestion is not as far fetched as it may prove to be in the end. (too long a phrase, huh?) So, if that's the case, you should check this out: -------- You can also get these errors if you send a query to the server that is incorrect or too large. If mysqld gets a packet that is too large or out of order, it assumes that something has gone wrong with the client and closes the connection. If you need big queries (for example, if you are working with big BLOB columns), you can increase the query limit by starting mysqld with the -O max_allowed_packet=# option (default 1M). The extra memory is allocated on demand, so mysqld will use more memory only when you issue a big query or when mysqld must return a big result row! --------- Bogdan Ronald Tezuka wrote: > If anyone can help me out, that'd be greatly appreciated. I'm trying to > create an upload form. Now I've checked both in books and online, and maybe > it's becuase I'm trying a weird application, but I can't seem to get uploads > greater than 6 megs. If it is greater than 6 megs, it loads up a blank page > even if I have the PHP script that outputs an HTML file. Anyway I checked > online when I was first did this and figured out to increase the max value > in the php.ini file from 2 megs to much higher. I'm still having trouble > though. > Here's what I am using > Omnihttpd 2.09 > PHP 4.02 > Windows 98 (4.10.1998) > and IE 4.72.3110 > So if anyone knows why I can't upload files greater than 6 megs > (approximate) it'd be greatly appreciated if you'd help me. Thanks > > Ron > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]