Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload files to ftp server using cakephp?

Is there anyway to upload files to an ftp server using cakephp?

like image 444
Cocco Avatar asked Jul 10 '10 15:07

Cocco


People also ask

How to connect FTP server using PHP?

PHP ftp_connect() Function$login = ftp_login($ftp_conn, $ftp_username, $ftp_userpass); // then do something... ftp_close($ftp_conn); ?>

How to download file from FTP server using PHP?

The ftp_get() function is used to download a file from the FTP server. The ftp_get() function retrieves a remote file from the FTP server, and saves it into a local file. This function was introduced in PHP 4.


2 Answers

Well ultimately you'll be using php :p

Here's a cake component to get you started: http://bin.cakephp.org/saved/31521

and of course the old fashioned way: http://php.net/manual/en/book.ftp.php

like image 56
Dan Heberden Avatar answered Sep 30 '22 23:09

Dan Heberden


There's a pretty solid plugin that will help out: CakeFTP

like image 26
jeremyharris Avatar answered Sep 30 '22 23:09

jeremyharris