|
From: "Angelo Zanetti" on 25 Jul 2008 05:51 Hi all We are pitching to develop a website where the admin has to upload big video files but I'm not sure how this can be done as the file upload will most probably time out. How do current websites do it? Is there somehow a way to make use of FTP to transfer the files? Any links, help, advice will be appreciated. Thanks in advance Angelo http://www.elemental.co.za
From: Raido on 25 Jul 2008 08:59 Hi, Maybe this is involved with it ? http://ee.php.net/manual/en/info.configuration.php#ini.max-input-time Angelo Zanetti wrote: > Hi all > > We are pitching to develop a website where the admin has to upload big video > files but I'm not sure how this can be done as the file upload will most > probably time out. > > How do current websites do it? Is there somehow a way to make use of FTP to > transfer the files? > > Any links, help, advice will be appreciated. > > Thanks in advance > > Angelo > http://www.elemental.co.za > > > > >
From: Thijs Lensselink on 25 Jul 2008 06:08 Quoting Angelo Zanetti <angelo(a)elemental.co.za>: > Hi all > > We are pitching to develop a website where the admin has to upload big video > files but I'm not sure how this can be done as the file upload will most > probably time out. > > How do current websites do it? Is there somehow a way to make use of FTP to > transfer the files? > > Any links, help, advice will be appreciated. > > Thanks in advance > > Angelo > http://www.elemental.co.za > > Uploading big files should not be a problem. Make sure the some .ini settings are correct for you: max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data max_input_nesting_level = 64 ; Maximum input variable nesting level ; Maximum size of POST data that PHP will accept. post_max_size = 8M The first 3 you can set with ini_set. You could of course use the ftp functionality available in PHP. http://nl3.php.net/ftp
From: "Angelo Zanetti" on 25 Jul 2008 08:26 -----Original Message----- From: Thijs Lensselink [mailto:dev(a)lenss.nl] Sent: 25 July 2008 12:08 To: php-general(a)lists.php.net Subject: Re: [PHP] uploading big files with PHP Quoting Angelo Zanetti <angelo(a)elemental.co.za>: > Hi all > > We are pitching to develop a website where the admin has to upload big video > files but I'm not sure how this can be done as the file upload will most > probably time out. > > How do current websites do it? Is there somehow a way to make use of FTP to > transfer the files? > > Any links, help, advice will be appreciated. > > Thanks in advance > > Angelo > http://www.elemental.co.za > > Uploading big files should not be a problem. Make sure the some .ini settings are correct for you: max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data max_input_nesting_level = 64 ; Maximum input variable nesting level ; Maximum size of POST data that PHP will accept. post_max_size = 8M The first 3 you can set with ini_set. You could of course use the ftp functionality available in PHP. http://nl3.php.net/ftp ----------------------------------------------------------------- Thanks Thijs, It does make sense to change the post_max_size value. But what if the file is for example a 100MB file or bigger. This probably isn't the best way to handle this? I'm trying to find the best practices to do this or is this totally the wrong way to go about this? Thanks again! Angelo
From: Jason Pruim on 25 Jul 2008 08:37
On Jul 25, 2008, at 8:26 AM, Angelo Zanetti wrote: > > > -----Original Message----- > From: Thijs Lensselink [mailto:dev(a)lenss.nl] > Sent: 25 July 2008 12:08 > To: php-general(a)lists.php.net > Subject: Re: [PHP] uploading big files with PHP > > Quoting Angelo Zanetti <angelo(a)elemental.co.za>: > >> Hi all >> >> We are pitching to develop a website where the admin has to upload >> big > video >> files but I'm not sure how this can be done as the file upload will >> most >> probably time out. >> >> How do current websites do it? Is there somehow a way to make use >> of FTP > to >> transfer the files? >> >> Any links, help, advice will be appreciated. >> >> Thanks in advance >> >> Angelo >> http://www.elemental.co.za >> >> > > Uploading big files should not be a problem. Make sure the some .ini > settings are correct for you: > > max_execution_time = 30 ; Maximum execution time of each script, in > seconds > max_input_time = 60 ; Maximum amount of time each script may spend > parsing request data > max_input_nesting_level = 64 ; Maximum input variable nesting level > > ; Maximum size of POST data that PHP will accept. > post_max_size = 8M > > The first 3 you can set with ini_set. You could of course use the ftp > functionality available in PHP. > > http://nl3.php.net/ftp > > ----------------------------------------------------------------- > > > Thanks Thijs, > > It does make sense to change the post_max_size value. But what if > the file > is for example a 100MB file or bigger. This probably isn't the best > way to > handle this? > > I'm trying to find the best practices to do this or is this totally > the > wrong way to go about this? I have not used it my self since I don't need to upload large files but why not use php's ftp functions[1]? [1] http://us.php.net/ftp -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com japruim(a)raoset.com |