<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Clear_logs extends CI_Controller { public...
Commands out of sync; you can't run this command now
Open this file system/database/drivers/mysqli/mysqli_result.php Add function next_result() { if (is_object($thi...
Remove index.php in ubuntu aws ec2 codeigniter
Step 1: $nano /etc/apache2/apache2.conf find <Directory /var/www/> Rename AllowOverride None to AllowOverride All save the fi...
Codeigniter: Session: Configured save path '' is not a directory, doesn't exist or cannot be created.
up vote down vote Working code; $config [ 'sess_save_path' ] = sys_get_temp_dir (); This allows to execute the script. ...
SendGrid SMTP Configuration in Codeigniter
//SendGrid Email configuration $config['protocol'] = 'smtp'; $config['charset'] = 'utf-8'; $config[...
Sparkpost SMTP Configuration in Codeigniter
//SparkPost Email configuration $config['protocol'] = 'smtp'; $config['charset'] = 'utf-8'; $config[...
codeigniter .htaccess in amazon ec2 removal of index.php not working
You can change your .htaccess like this RewriteEngine on RewriteCond %{ REQUEST_FILENAME } !- f RewriteCond %{ REQUEST_FILENAME } ...
Redirect http website access to the https prefix website in codeigniter
//Place the below code in the index.php file of codeigniter framework <?php if($_SERVER['HTTPS']!="on"){ if...
Codeigniter Multiple file upload Code easy way
function do_upload () { $this -> load -> library ( 'upload' ); $files = $_FILES ; $cpt = count ( $...
Codeigniter select query with AND and OR condition
$where = '(doctor_slot.day_name="'.date('l', time()).'" OR doctor_slot.day_name="'.date('l...
Dynamically Selected the selected option in codeigniter php
<?=isset($_GET['category_id'])?$_GET['category_id']==$item->id ? "selected" : '':''?>
Codeigniter dynamic base_url() setup
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https...
Use of undefined constant EXT - assumed 'EXT' Filename: core/MY_Loader.php
The EXT is defined in your root index.php file. // The PHP file extension // this global constant is deprecated. define ( 'EXT...
Only variable references should be returned by reference - Codeigniter
Edit filename: core/Common.php, line number: 257 Before return $_config [ 0 ] =& $config ; After $_config [ 0 ] =& $co...
How to put website under Maintenance mode in codeigniter
To put site under construction or under maintainence mode Step 1: In codeigniter root index.php file make it the below line of code ava...
Generate slug url in php codeigniter
Save this class file library generateslug.php class GenerateSlug{ /* * Developed by Manikanta */ public function get_r...
Codeigniter Querysting based pagination Code
Place Code in controller if(strpos($_SERVER['REQUEST_URI'],'?')) $sufix = '&'.http_build_query($_GET, '...
Codeigniter upload library get thumb file name
There really is a much easier way of doing this: if ( $this -> upload -> do_upload ()) // If file was uploaded { ...
Store date only in mysql with php codeigniter
What is your reason for doing this? I can't see any reasonable use for it. You cannot change the way MySQL stores dates, no. But you...
Fatal error: Cannot redeclare class (PHP)
Use require_once instead of require
Popular Posts
- Implement complete SEO management for this project
- Error: ngModel:datefmt Model is not a date object
- How to Fix FastPanel Not Opening on Port 8888 Due to fastcgi_index Nginx Error
- Understanding Web Servers: The Complete Guide to Hosting Types
- What Is Virtualization and Why Prices Differ
- Block multiple FTP or SFTP connections from different machines with same username fastpanel
- Google Map APIS calculation example
- Deploying Socket.io with FastPanel + Nginx Reverse Proxy + Cloudflare
- How to Copy One MongoDB Database to Another Using mongosh (Without Backup Files)
- RAG