0

我想知道,我们是否可以创建像 filezilla 这样的基于 Web 的应用程序。如果是,任何信息都会对我有所帮助。我尝试搜索谷歌,但无法获得正确的信息。我得到的只是提供这项服务的网站,例如http://www.txftp.com/而 不是如何去创建这样的网站。

4

2 回答 2

1

When you create web based application, this becomes http protocol, what you actually end up doing is upload and download of files over the http protocols. building the similar look and feel like Filezilla is quite easy, but achieving same performance and guarantee will be difficult.

One way to achieve this can be by writing java applets. You can use any ready made java ftp libraries to code this applet. http://www.javaworld.com/javaworld/jw-04-2003/jw-0404-ftp.html. You may have to create a policy and sign the applet so that user allows your applet to open a ftp socket connection from the applet.

In case if you are ok with HTML5, you can explore into WebSockets for the solution. http://mustafaakin.wordpress.com/2011/10/16/introducing-websocket-file-transfer/

于 2012-05-11T09:52:40.050 回答
0

网上有很多FTP教程,先看看启动它的函数

<?php

$ftp_server = "ftp.example.com";

// set up a connection or die
$conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); 

?>
于 2012-05-11T09:29:22.100 回答