Sorry... here is the post Lou
<<< ----- POST ----- >>>>>> From: Fred ([EMAIL PROTECTED]) Subject: Large file uploads timeout - ouch! View this article only Newsgroups: php.general Date: 2001-12-05 02:18:53 PST I'm designing a simple content management system with PHP, and it is going great, except... I do seem to have one problem - I'm trying to use PHP's copy function to upload files through a web browser. It works fine on small files, but times out on large ones, like a 20 MB file I'm sending. I'm on a 1Mbps DSL connection, and routinely download 600MB iso images with no problem, and seem to be having no connection problems on this end. My client is also getting timeouts on large files, and they're on a different network. The web server is running Debian Linux kernel 2.2.19; Apache/1.3.9; PHP 4.0.6 at a web hosting company. I checked the PHP manual, it said that the default maximum file upload size is 2MB. I used phpinfo() to show the server settings, and it reports that it is: upload_max_filesize=2M post_max_size=8M max_execution_time=30 which is the global file upload maximum and POST maximum and execution limit. I changed /cgi-bin/php.ini to include the lines upload_max_filesize=200M post_max_size=200M max_execution_time=2400 memory_limit=120M and saved it. I tried my upload again, but it still times out. Does Apache need to be restarted for the change to take effect? I ran phpinfo() again, and it shows upload_max_filesize=200M post_max_size=200M max_execution_time=2400 so it looks like it took the change to php.ini. I successfully uploaded a 1.8MB file, a 2.2MB file, a 4.1MB file, a 5.4MB file, a 6.1MB file, a 6.9MB file, and a 7.05MB file, but a 7.248MB file and a 7.6MB file timed out like the larger one. I'm doing the upload from IE 6.0 on Windows 2000 (running on my Linux box with VMware). I got the same results on Mozilla 0.9.6 on Mandrake Linux 8.0. I've read that PHP file uploads are done in RAM, so perhaps that is part of the problem? Unfortunately, my client plans to upload ~90MB files this way, and I'd like to leave PHP file upload as the only method needed. Here's part of the page using the upload/rename/delete script. It works flawlessly on smaller files. The only timeout (that I *know of!*) that I don't know how to change is the Apache timeout of 300 seconds. It appears that it is indeed timing out after 300 seconds (five minutes). It shows as HTTP_KEEP_ALIVE = 300 in phpinfo(). All of this is done on a virtual server at a web host, so I don't have access to the httpd.conf for Apache, although they *might* change it if I know what to ask them... ;-) -----Original Message----- From: Lou Parmelee [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 2:16 PM To: '[EMAIL PROTECTED] Php. Net' Subject: Upload seems to time out over 7.5 M Hello all, I couldn't upload any files larger than 2M. So I searched around and found this post last night and I made the changes to the php.ini file to support 20M file uploads. The changes were successful but just like in the post below I can't upload over a 7.5M file now. Any ideas would be much appreciated. Thanks, Lou -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php