Re: uploading big files with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Kubler wrote:
> There are other ways to upload files.
> I know if you use Google Gears <http://code.google.com/apis/gears/>
> (requires a plugin for your web browser), then you can easily have the
> file split up <http://code.google.com/apis/gears/api_workerpool.html>
> (client side) and sent in chunks, e.g 500Kb, and if the upload fails
> then only that chunk gets affected, you can then resume the uploading
> and the client only has to re-upload from that failed chunk.
> I saw this being demo'd at the Google developer conference in Sydney,
> not sure if it is part of the publicly available release as yet,
> however I have seen similar things done on some websites. I think
> Flickr have similar functionality using AJAX calls... but I might be
> wrong.
You are right on this. There are some other great methods for uploading.
I just meant that in PHP there is not much more options. Of course in
combination with other technologies you can do some pretty cool stuff.
You could use some Java applet, Flash, or like you said Ajax in
combination with PHP.
>
> Michael Kubler
> *G*rey *P*hoenix *P*roductions <http://www.greyphoenix.biz>
>
>
>
> Thijs Lensselink wrote:
>> Quoting Angelo Zanetti <angelo@xxxxxxxxxxxxxxx>:
>>
>>>
>>>
>>> -----Original Message-----
>>> From: Thijs Lensselink [mailto:dev@xxxxxxxx]
>>> Sent: 25 July 2008 12:08
>>> To: php-general@xxxxxxxxxxxxx
>>> Subject: Re:  uploading big files with PHP
>>>
>>> Quoting Angelo Zanetti <angelo@xxxxxxxxxxxxxxx>:
>>>
>>>> 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
>>>
>>
>> If the file is located on the client side. Then form based upload
>> over HTTP is your only option really. FTP only comes in handy when
>> the file in question resides on the server.
>>
>>
>>
>>


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux