how to get ip address in codeigniter? Codeigniter Input User Guide (ip_address) $ip = $this->input->ip_address(); echo $ip;
Read MorePHP
How to update a column value with the current column value plus an increment in codeigniter?
How to update a column value with the current column value plus an increment in codeigniter?How to update a column value with the current column …
Read MoreUpdate the value of a field in database by 1 using codeigniter
Update the value of a field in database by 1 using codeigniter $this->db->set(‘usage’, ‘usage+1’, FALSE); $this->db->where(‘tag’, ‘java’); $this->db->update(‘tags’);
Read MoreRemove index.php From Url in Codeigniter
Remove index.php From Url in Codeigniter RewriteBase / RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^/(index\.php|assets/|humans\.txt) RewriteRule ^(.*)$ index.php?/$1 [L]
Read MoreFor testing purposes, I would like to append a query string (let’s say testing=true) to any url requested from my website.
For testing purposes, I would like to append a query string (let’s say testing=true) to any url requested from my website. #E.g. I want to …
Read MoreRedirect all url with a query string in php
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{QUERY_STRING} !(^|&)testing=true(&|$) [NC] RewriteRule ^ %{REQUEST_URI}?testing=true [L,QSA,R] RewriteCond %{REQUEST_FILENAME} !-f …
Read MoreCreating Google API Console
To create a Google API Console project and client ID, follow these steps: Go to the Google API Console . From the project drop-down, select an existing project , …
Read MoreHow to create Google API from google console
Creating a Google API Console project and client ID Before you can integrate Google Sign-In into your website, you must have a Google API Console …
Read MoreFacebook login script
<script> window.fbAsyncInit = function() { FB.init({ appId : ‘{your-app-id}’, cookie : true, xfbml : true, version : ‘{latest-api-version}’ }); FB.AppEvents.logPageView(); }; (function(d, s, id){ var …
Read MoreI’m getting notices on server with PHP 5.5 preg_replace(): The /e modifier is deprecated
I’m getting notices on server with PHP 5.5 preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead i’m not sure but it seems the entity_decode …
Read More