Re: Uploads

From: Date: Wed, 23 Jan 2002 01:18:44 +0000
Subject: Re: Uploads
Groups: php.general 
Request: Send a blank email to php-general+get-81615@lists.php.net to get a copy of this message
Okay with the relation to execution time, would the order of things make a difference? Since I am sending the html page before doing anything with the file upload, would that impose on the 30 second limit? eg, php script called --> send webpage --> wait 30 seconds for file to finish uploading --> execution time runs out? Ron
From: Bogdan Stancescu <mgv@fx.ro> To: rtezuka@uoguelph.ca CC: php-general@lists.php.net Subject: Re: [PHP] Uploads Date: Tue, 22 Jan 2002 04:44:00 +0200 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx

« previous php.general (#81615) next »