There is no case insensitive version of the like function. What you can do is transform both sides of the comparison to lower case, so …
Read MoreTag: CodeIgniter
What is Phar in Php?
Phar archives are similar in concept to Java JAR archives, but are tailored to the needs and to the flexibility of PHP applications. A Phar …
Read MoreCheck if image exists in folder or not currupted in php
Check if image exists in folder or not currupted in php:: $full_path = Full Image path; (Like: ../dd/tmp.jpg) if(!file_exists($full_path)){ //Image Not Available or …
Read MoreOptimize Images in Google Page Speed
Optimize Images in Google Page Speed:: This rule triggers when PageSpeed Insights detects that the images on the page can be optimized to reduce their …
Read MorePhp- Remove index.php from url in Codeigniter
Php- Remove index.php from url in Codeigniter RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^/(index\.php|assets/|humans\.txt) RewriteRule ^(.*)$ index.php?/$1 [L]
Read MorePhp – Remove index.php from url and redirect to https in Codeigniter
Php – Remove index.php from url and redirect to https in Codeigniter:: RewriteEngine on Rewritebase / RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] …
Read MorePhp – Define caching in Htaccess
Define caching in Htaccess:: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access …
Read MoreCodeigniter – How to Join City Country State by concatenate two fields in Sql
Codeigniter – How to Join City Country State by concatenate two fields in Sql $this->db->select(” CONCAT(c.name,’-‘,co.code) as id,CONCAT(c.name,’ ,’,s.name,’ ,’,co.name) as text”,FALSE); $this->db->from(“city c”); $this->db->join(‘state …
Read MorePagination in Codeigniter php
//Pagination url $paging_url = ‘Your Page Url’; $show_per_page = 3; $config = array(); $config[“base_url”] = $paging_url; $config[“total_rows”] = $total_row; $config[“per_page”] = $show_per_page; $config[‘use_page_numbers’] = TRUE; …
Read Morehow to get ip address in codeigniter?
how to get ip address in codeigniter? Codeigniter Input User Guide (ip_address) $ip = $this->input->ip_address(); echo $ip;
Read More