Re: [PHP] Upload a big file.

2006-07-13 Thread Dave Goodchild

On 13/07/06, João Cândido de Souza Neto [EMAIL PROTECTED] wrote:


Hello gang.

I´ve got a e-commerce system where one can import data from his management
system.

This importation files sometimes has a size about 8Mb. Unfortunatly, when
one try to put this file into e-commerce, generaly one gets any error
because your connection speed is very slow and can´t send this file.

There´s any way to increase this wait time and get big files?

Thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

First of all, use set_time_limit(0) in your script, which gives an

unlimited execution time. Then amend the max files size limit in php.ini, or
locally.


--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk


RE: [PHP] Upload a big file.

2006-07-13 Thread Jay Blanchard
[snip]
 First of all, use set_time_limit(0) in your script, which gives an
unlimited execution time. Then amend the max files size limit in php.ini, or
locally.
[/snip]

You will likely have to do the same thing in Apache (or whatever your web 
server software is) as there will be a time-out built into that as well.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Upload a big file.

2006-07-13 Thread Jochem Maas
João Cândido de Souza Neto wrote:
 Hello gang.
 
 I´ve got a e-commerce system where one can import data from his management 
 system.
 
 This importation files sometimes has a size about 8Mb. Unfortunatly, when 
 one try to put this file into e-commerce, generaly one gets any error 
 because your connection speed is very slow and can´t send this file.
 
 There´s any way to increase this wait time and get big files?

take note of what the other respondents wrote regardless upload and timeout 
limits
(in both apache and php)

but 

you might also consider that it may be better to automate the process somewhat 
by
having the back office system (S)FTP the 'import file' and using an automated 
job
(e.g. php script set to run regularly via cron) to check for the existence of
said 'import file' and process it if it exists. basically the idea being to
remove the requirement for user and browser interaction from the import
process completely.

 
 Thanks.
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php