What is Cookie
In simple words Cookies are small information that browser store in user’s computer. It’s a simple text file which store maximum 4KB of data. Cookies are created by browser on the request of server (as per program logic). Every time user visit to website that set the cookie, the browser sends cookie information (if it set previously) back to server using HTTP Header.
In my previous tutorial i wrote about
1. What is cookies, how to create, read, update and delete cookies
2. How to set cookies on multiple subdomains
Cookies store only string values. You cannot store array values directly into cookie. In this article, i am trying to explain how to store array values in Cookie
In this tutorial i will demostrate how to check/uncheck multiple checkboxes using Jquery. Multiple check/uncheck select box feature is used in many applications. If you are gmail user then probably you have seen this feature for selecting multiple mails.
In my previous articles, i already discussed what is .htaccess and their applications in web development. In this short tip, i am going to tell you how to secure you folders through .htaccess File.
In my previous tutorial, i already explained the basics of regex. In this article, i’ll explain how to remove spaces from string through regex.
What is an Array
Let’s start with declaration
To declare an array using Array constructor .
var firstArray = new Array();
or Define them in single line
Seo-friendly short URLs is always easier to remember. It improves your website search ranking and friendliness. In this article i tried to cover how to rewrite URL through .htaccess. What is mod_rewrite apache module. what’s the advantages of URL rewriting.
What is .htaccess
.htaccess files are used to provide configuration changes. This file is used by Apache server to read the configuration and directives. Then it applies these directives to directory or subdirectory level (Depends on whether you placed your .htaccess file).
PDO refers to PHP Data Objects. It is a database access layer providing a uniform method of access to multiple databases.PHP Data Objects is written to provide consistent API. It means in future if you change your database, the code changes is very minimal.
What is Regular Expression
In simple words it is a pattern of symbol and characters. Regular expression is used to search,replace or modify the words/strings. It is the most important part of your daily programming usage whether rewriting url using .htaccess, form validation, validating user input etc.
Regular expression is a sequence of characters and each characters has it’s special meaning. Let’s look at some basic characters and it’s meaning.
Magic method are specialized method that is executed in response to a specific PHP event.Each magic method is prepended with two underscores. It triggers custom behaviour and defined by programmer inside the class. Some of the magic methods are __construct(),__destruct(), __toString(), __get(), __set(), __call() etc.