skip to Main Content

Memcached – Can't caching object in codeigniter

I have this following code in the Address controller public function index() { if($this->session->userdata('isLogin')) { $this->load->driver('cache'); $this->load->model('MemberModel'); if(!$this->cache->get('province') == false) { $this->load->model('ShippingModel'); $data['provinces'] = $this->ShippingModel->the_provinces(); // it will return json object $this->cache->save('province', $data['provinces'], 300); } else { $data['provinces'] = $this->cache->get('province');…

VIEW QUESTION

Apache – Unable to connect to your database server using the provided settings sql-server 2008

I can't connect to database. i have these extension php_pdo_sqlsrv_72_ts_x64.dll, php_sqlsrv_72_ts_x64 and added "extension = php_sqlsrv_72...." line in php.ini file. What am i doing wrong? Unable to connect to your database server using the provided settings. Filename: C:/Apache24/htdocs/smartattendanceciwec/system/database/DB_driver.php Line Number:…

VIEW QUESTION

Codeigniter base_url in plesk

Recently I uploaded a website which created using codeigniter framework into plesk. Inside the c-panal I changed the document root into httpdocs/public_html/cliftonhotel.ae, and I uploaded the files using FTP into the same. I changed the base_url into $config['base_url'] = 'http://cliftonhotel.ae/';…

VIEW QUESTION

class CI_controller not found when running cronjob – CPanel

All day spent trying to figure it out. cronjob cpanel command: php -q /home/domain/public_html/application/controllers/Cronjob.php cronjob.php <?php class Cronjob extends CI_Controller { public function __construct(){ parent::__construct(); } public function transactions(){ $addresses = $this->db->get_where('bitcoin_addresses')->result(); foreach ($addresses as $key => $value) { $id…

VIEW QUESTION
Back To Top
Search