Reply to RE: [PHP] Re: Can I use ftp_put to bypass upload_max_filesize?

Your name:

Reply:


Posted by Sed on 03/16/05 03:43

Are you meaning timeout limit? Not PHP script execution limit in php.ini?
What I understand, the PHP script does not run until the file is uploaded to
the server via POST.

SED

-----Original Message-----
From: Eli [mailto:eli.hen@gmail.com]
Sent: 15. mars 2005 23:27
To: php-general@lists.php.net
Subject: [PHP] Re: Can I use ftp_put to bypass upload_max_filesize?

Sed wrote:
> Is it somehow possible, to use ftp_put to upload a file bigger than
> the upload_max_filesize is set in the php.ini? (eg. upload 100Mb while
> upload_max_filesize is set to 16MB)

You will have also to consider the browser's timeout limit. Uploading a
100MB file via HTTP POST will probably take quite a long time that the
browser will timeout and interrupt the transfer.

I got a thought, but didn't try to check it out:
If there's a way to split a file to small chunks (i.e 2MB a chunk), then you
can use JS Remote Scripting (HTTPRequest) to upload the chunks one by one,
and then append all chunks on server side and you get the 100MB file. This
way you can also display a progress bar of uploading. Of course the chunks
will be transffered like packets (in TCP), so each chunk will have an header
that relates it to the original file.
The part that is not well cleared to me is whether is possible to split a
file into chunks using JS.
What do you think?

-thanks, Eli

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация