How to get the user browser information in Codeigniter::

How to get the user browser information in Codeigniter:: //For Ip Address:: $ip_address = $this->input->ip_address(); //For User Agent / Browser:: $this->load->library(‘user_agent’); if ($this->agent->is_browser()){ $agent = $this->agent->browser().’ ‘.$this->agent->version(); }elseif ($this->agent->is_robot()){ $agent = $this->agent->robot(); }elseif ($this->agent->is_mobile()){ $agent = $this->agent->mobile(); }else{ $agent = ‘Unidentified User Agent’; } //For Using platform:: $platform = $this->agent->platform(); //For Full Agent String:: $full_user_agent_string … Read moreHow to get the user browser information in Codeigniter::

Select / Deselect all checkboxes using jQuery

Select / Deselect all checkboxes using jQuery: The HTML Structure is following type::The HTML Structure is following type:: <table> <tr> <td><input type=”checkbox” id=”checkbx_selectall” /> Select all</td> </tr> <tr> <td><input type=”checkbox” class=”__chckbx_select” value=”1″/>Item 1</td> </tr> <tr> <td><input type=”checkbox” class=”__chckbx_select” value=”2″/>Item 2</td> </tr> <tr> <td><input type=”checkbox” class=”__chckbx_select” value=”3″/>Item 3</td> </tr> <tr> <td><input type=”checkbox” class=”__chckbx_select” value=”4″/>Item 4</td> </tr> … Read moreSelect / Deselect all checkboxes using jQuery

Optimize 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 filesize without significantly impacting their visual quality. Overview Images often account for most of the downloaded bytes on a page. As a result, optimizing images can often yield some of … Read moreOptimize Images in Google Page Speed

Php- 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]

Php – 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] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^/(index\.php|assets/|humans\.txt) RewriteRule ^(.*)$ index.php?/$1 [L]