Skip to content

Instantly share code, notes, and snippets.

@davist11
Last active December 29, 2015 00:29
Show Gist options
  • Save davist11/7586620 to your computer and use it in GitHub Desktop.
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
<?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