Sending email using SMTP with codeigniter email library

This tutorial is based on the  CI docs (CodeIgniter Email Library)… Simply create a new file called the email.php, add the $config array in that file as defined below. Then save the file at config/email.php and it will be used automatically. You will NOT need to use the $this->email->initialize() function if you save your preferences in […]

Read More

Upload Multiple Files or Images in Codeigniter using Ajax JQuery

Source Code Controllers – Upload_multiple.php <?php defined(‘BASEPATH’) OR exit(‘No direct script access allowed’); class Upload_multiple extends CI_Controller { function index() { $this->load->view(“upload_multiple”); } function upload() { sleep(3); if($_FILES[“files”][“name”] != ”) { $output = ”; $config[“upload_path”] = ‘./upload/’; $config[“allowed_types”] = ‘gif|jpg|png’; $this->load->library(‘upload’, $config); $this->upload->initialize($config); for($count = 0; $count<count($_FILES[“files”][“name”]); $count++) { $_FILES[“file”][“name”] = $_FILES[“files”][“name”][$count]; $_FILES[“file”][“type”] = $_FILES[“files”][“type”][$count]; […]

Read More