Codeigniter SMTP Email with Amazon SES

I think yesterday Amazon announced SMTP support for SES (Simple Email Service). I tried to send SMTP email with Codeigniter with no luck. I have a verified sender and everything looks...

Running a cron job with CodeIgniter

I need to run a cron job on a file using CodeIgniter but CodeIgniter won't let me run a file directly. i.e. I can run the controller in the browser with: api.example.com/index.php/cron My...

Fatal error: Call to undefined method CI_Session::sess_destroy() 1.7.2

My current version of ci is 1.7.2 but ehen i am using $this->session->unset_userdata('uid'); $this->session->unset_userdata('email'); $this->session->sess_destroy(); in my...

Codeigniter - Forgot Password

Hello: I need to implement a forgot password to a login page. Here I explained what I have so far. Recover view is prompt to received email input Function email_exists() will verify email. If so,...

codeigniter cache folder permission 777

I cannot believe it(last red box): https://www.codeigniter.com/user_guide/general/caching.html Note: Before the cache files can be written you must set the file permissions on your...

Point cPanel subdomain to CodeIgniter controller

I have a CodeIgniter controller which looks like this: mysite.com/controller What I want to do is to be able to call this controller from a subdomain, e.g.: subdomain.mysite.com When I create...

How to edit Records using CodeIgniter

how do i edit my records?i keep getting to wrong pages.. thanks in advance really need help i based my code in my delete function i got from yesterday but i have no luck doing so in...

403 Forbidden Access to CodeIgniter controller from ajax request

Im having trouble with sending an ajax request to codeigniter controller. It is throwing back a 404 Forbidden Access error. I have found some sort of similar question to this but im not sure if...

PHP Rename error : The system cannot find the path specified. (code: 3)

I want to move an excel file from one folder to another, I have used the following line of code $approve_employee_id = $this->input->post('approve_employee_id'); $approve_month_id =...

Connecting to Oracle in Codeigniter (undefined constant OCI_COMMIT_ON_SUCCESS)

im kind of a n00b to Oracle db's, but when i set my dbdriver in codeigniter to oci8, i get the following error, which is weird, providing the extension is enabled in the php.ini file. I get the...

codeigniter form upload with images using ajax

I need to submit image with form data,I have search a better method for this, but unfortunately I couldn't find a better way for my purpose, previously done with this.serialize() method. But it...

unable to load your default controller on Codeigniter

This is the error that i am getting. Please make sure the controller specified in your Routes.php file is valid. Let me explain this. In my application i have used HMVC. In my application folder...

Class 'GuzzleHttp\Client' not found

I am using BOTH Guzzle and Codeigniter 3.0 for the first time. Also I admit I am using php namespace for the first time. I am trying to make a very simple get request using Guzzle according to the...

Getting error mysqli::real_connect(): (HY000/2002): No such file or directory when I try to access my project on live server

I had uploaded my website to server and then I tried to access, but the code igniter returns me that error that I don't find any answer. Why is this happening? My config database is set...

Codeigniter Chat Application Not submitting form data and also giving displaying an 500 Internal Server Error in javascript console

I am trying to implement a chat application using the codeigniter framework but on form submit, the form data does not get submitted and the submit button becomes disabled. when I check on the...

Codeingiter - RESTful API Key auth for only certain Routes

I'm in the process of building a RESTful API server. Everything is working as it should be as of now. I'm using Phil Sturgeon RESTful server implementation for CodeIgniter which is pretty much...

CodeIgniter Unset A Signle Session Item In An Multidimensional Array

On my User.php library in my login function I create admin sessions by $create_session = array( 'is_logged' => true, 'user_id' => $row->user_id ); $this->CI->session->set_userdata('admin',...

Call to undefined function sqlsrv_connect() ubuntu

I'm trying to connect to microsoft sql express using php in my local machine ubuntu, the databse is in the server cloud, but I got this error : A PHP Error was encountered Severity:...

Codeigniter 3 Fatal error: Call to a member function database() on null

I think that can't manage to connect to the database and I don't know why. I have looked over stackoverflow and found this questions: here and it is not helping me in solving my problem. I have...

Codeigniter CSRF valid for only one time ajax request

I want to upload image on the server on change event of jQuery but using codeigniter csrf I am able to upload image only one time. How can I upload images using ajax for multiple requests.Please...

Best Practice to Print Barcode In dompdf

I want to create a label sticker with barcode in PDF. Please give me the suggestion to create this things. Now , I use CI3 and dompdf. I have tried googling a lot of time, but I am not found the...

Getting error in codeigniter : a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request

Earlier my menus were working fine and suddenly it started giving error Not Found The requested URL /allbound/index.php was not found on this server. Additionally, a 404 Not Found error was...

Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method

Iam using codeigniter I exicuted the code on live server. got the following error using print_debugger() Unable to send email using PHP SMTP. Your server might not be configured to send mail...

CI_Template' not found

I want to load model using $this->load->model('apotek_data'); function __construct() { parent::__construct(); $this->load->model('apotek_data'); $this->template->write_view('sidenavs',...

ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in codeigniter

I'm using CI 3.1.10.In the index.php file i use development enviroment. MY controller <?php class Test extends CI_Controller { public function index(){ echo CI_VERSION; } } ?> When i...

Download a image from angular

In my angular 8 application , i have images . How to download the images in the angular application ? In my application there is a listing , And in the listing there are images . I am using...

Decrypt showing error authentication failed

I am using codeigniter 4. Why is my code showing error when I'm trying to encrypt my URL ID in view? view: <?php $ encrypter = \Config\Services::encrypter(); $data1 = $value['id_aktivitas'];...

In Codeigniter 4, how to display database name and table prefix?

So far in codeigniter 3 we can get database name and table prefix (as mentioned in config/database.php) from the below code lines: echo $this->db->database; echo...

Getting Call to a member function view() on null

I am facing an issue with CodeIgniter 4: in my controller, if I am trying to call a view it's showing below error. namespace App\Controllers; class Security extends BaseController{ /** * An...

Problems with Code Igniter manual instalation

Codeigniter 4 shows this error: SYSTEMPATH\CodeIgniter.php at line 224. (the full error body, below) Looks like missing $extension intl is the problem. I allready edit the php.ini file, removing...