Re: Re: file upload and php (Not a begginer [sic]question!)

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

 



on 10/15/02 4:11 PM, BAROILLER at baroiller@daoditu.com appended the
following bits to my mbox:

> No one have an idea ?

Maybe it's because this isn't really database related and you posted to the
PHP-DB list instead of PHP-GENERAL?

> I don't want to use this because it's too long for users when you try to
> upload multiple huge files..

No matter what, it's going to take a long time to upload "multiple huge
files".  There may or may not be less overhead using the ftp protocol, but
it will still take a long time.

In general, all you have with PHP is the web browser interface and that
means HTML forms.  Any decent browser (read: one that doesn't have huge
security holes, i.e., Windows Internet Explorer) won't give you access to
any files on the user's filesystem except for those specified by the user in
a "file" type input box.

> I'm looking for a tool or script that could work like a direct ftp browser
> where you can select files and upload them fast as possible.

There may be Java applets that do that, but there are probably security
issue notices for the user.

Time your FTP upload and your HTTP upload and see what the difference is.  I
don't think there's as big a difference protocol wise as you believe.  If
you're on a shared host, the problem is more likely other traffic on port 80
or that your web traffic is being throttled somehow.  If you run your own
server, try a different port 8000 to see if the speed improves.

I do think that HTTP is often better for downloading because if you support
HTTP-KeepAlive, you have only one connection instead of the two or more
needed for each FTP request.  It also works reliably in nearly all browsers
whereas some may not support ftp.

HTH,

Paul

-- 

I'm inhaling Caesar's last gasp...
http://paul.burney.ws/thoughts/caesars_breath.html


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux