Last active
December 29, 2015 00:29
-
-
Save davist11/7586620 to your computer and use it in GitHub Desktop.
This is the error I'm getting: Fatal error: Class 'CI_FTP' not found in /Users/tdavis/Sites/lansinoh/third_party/vl_lansinoh/libraries/Ftp.php on line 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
require_once(BASEPATH . 'libraries/Ftp.php'); | |
class EE_FTP extends CI_FTP { | |
var $timeout = 90; | |
/** | |
* FTP Connect | |
* | |
* @access public | |
* @param array the connection values | |
* @return bool | |
*/ | |
function connect($config = array()) | |
{ | |
if (count($config) > 0) | |
{ | |
$this->initialize($config); | |
} | |
echo 'hello'; | |
exit(); | |
if (FALSE === ($this->conn_id = @ftp_connect($this->hostname, $this->port, $this->timeout))) | |
{ | |
if ($this->debug == TRUE) | |
{ | |
$this->_error('ftp_unable_to_connect'); | |
} | |
return FALSE; | |
} | |
if ( ! $this->_login()) | |
{ | |
if ($this->debug == TRUE) | |
{ | |
$this->_error('ftp_unable_to_login'); | |
} | |
return FALSE; | |
} | |
// Set passive mode if needed | |
if ($this->passive == TRUE) | |
{ | |
ftp_pasv($this->conn_id, TRUE); | |
} | |
return TRUE; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment