Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
i bought a VPS and i install wampserver on this vps,then i wrote a php code
on this vps(i mean wampserver),i use ftp_put() function in php to ftp_upload
a 2GB file to may bitshare account but file uploaded very slow but when i use
"filezilla ftp client" on my vps ,my file uploaded very fast,how can i connect to filezilla ftp client in my php code to inforce filezilla upload my file instead of ftp_put() function of php?can php or apache connect to filezilla ftp client???
Posted
Comments
Sergey Alexandrovich Kryukov 10-Aug-12 12:48pm    
What to you mean by "connect to... client"?
--SA

1 solution

Not clear what do you mean by this. Normally, a client connects to the server. As to Filezilla, this is a two-part software: an FTP/SFTP/FTPS server and a client:
http://en.wikipedia.org/wiki/Filezilla[^].

I never knew that Filezilla client part could act as a server. I also never saw a PHP API for the Filezilla client; even if it does exist, I never heard of it.

So, if you want to "connect" to Filezilla client part, I don't know what it supposed to mean. However, if you want to connect to Filezilla server, you can always do it, but, first, you will need a PHP FTP client, and, second, then it would not matter if you are using Filezilla or not; it would work for any valid FTP server.

If this is what you want, you can find a suitable PHP FTP client. Please see:
https://github.com/suin/php-ftp-client[^],
http://freecode.com/projects/asukphpftp[^],
http://webscripts.softpedia.com/script/Internet-Browsers-C-C/FTP/PHP-FTP-Client-42153.html[^].

Try to find some more if you need:
http://lmgtfy.com/?q=FTP+client+PHP[^].

Good luck,
—SA
 
Share this answer
 
Comments
[no name] 12-Sep-12 8:43am    
thank you for your response,i wanna make my problem more clear to help me,
i have a VPS(OS:windows2003server) with 1Gbps internet internetspeed ,and i install filezilla client and wampserver on this vps,then i have a netload account,i upload file(size:4GB)by filezilla client to netload ftpserver and speed of uploading was goood,but when i want to use ftp_put() func of php for upload this file it takes lot more time???can i increase speed of ftp_put() fun?
Sergey Alexandrovich Kryukov 12-Sep-12 15:16pm    
I don't think you can increase this speed...
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900