by Bhumi //Nov 20,2012 // No comment
CodeIgniter is great framework by its simplicity because structure of the CodeIgniter framework is clear and flexible.
Let’s understand the function used to get user’s ip in CodeIgniter.
CodeIgniter offers a way to retrieve the user’s IP address with using a in-built function in CodeIgniter.
If the IP address isn’t valid, function will return 0.0.0.0.
Next,is about To validate an IP address and you should use have a function for that also which will return TRUE or FALSE.
The above function validates the IP automatically.
echo "Not a valid IP";
echo "Valid IP!";
To determine the user agent of the user, you can use the below code in CodeIgniter. It will return the user agent of the user’s web browser; if not available, it will
Is this information useful? What other tips would you like to read about in the future?
Share This: Method Chaining is the new feature of object-oriented approach introduced in PHP5.Today I am going to explain how to use method chaining in READ MORE
Share This: Today i am going to explain about how to create zoho leads from php. Zoho provide online lead management system.Zoho leads take details READ MORE
Share This: Here i am going to explain new article about how to call webservice in wordpress. Webservices are useful to retrieve your contents ftom READ MORE
Share This: After a long long time i get time to write article and i am curious to write but didn’t get time. So, Today READ MORE
Posted on Mar 2,2012
Posted on Dec 1,2011
Posted on Nov 26,2011
Posted on Jan 18,2013
Posted on Dec 12,2011
Be a Contributor at CreativeDev.Write an article or tutorial to the community and share some of your knowledge!