How to Use Cookies in JavaScript

How to Use Cookies in JavaScript

The HTTP protocol, which uses by Web Browser and Server to communicate, is a stateless protocol, means once the server send a response to a browser of the request, it doesn’t remember a thing about it. To solve this problem cookies were invented. There are other ways also to solve this but cookies are easy to use and very versatile. So in this article I will explain how to use …

Continue reading

jQuery Datepicker with Simple Example

jQuery Datepicker with Simple Example

jQuery Date-picker most commonly used date-picker today in web applications. In this article I am explaining how to use jQuery Datepicker and it’s utility function with simple example. For example we need to save an event which has two dates `from` and `to`. So we need two date-picker fields and on the selection of `from` date, we need to disable all before dates in the `to` date-picker UI. So we …

Continue reading

List of Some important javascript functions

List of Some important javascript functions

JavaScript is a lightweight, interpreted programming language with object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages. We all know that today jQuery and Prototype are mostly uses JavaScript library. But we should know about standard JavaScript functions, So here I am listing some important JavaScript functions with their uses. split() : string.split(separator,limit); The split() method splits a string into an array of sub-strings and returns …

Continue reading

How to Resize Image in PHP

How to Resize Image in PHP

Almost every website uses thumbnail or resized images with content in form of featured image. Every website showing thumbnails in product gallery, portfolio, featured section, etc. So I have created a function to resize image in php. With this you can resize images easily using PHP and the GD library. If you’re looking for the same to resize uploaded images you can try it. In this article I will show …

Continue reading

How to Validate RSS Feed in PHP

How to Validate RSS Feed in PHP

RSS is now greate source of announcing new content of a Web site. RSS feeds are in XML format, but these feeds need to build with RSS specifications, so they can be executed well when any programs and sites that syndicate the feeds. We can there are some online tools to validate RSS feed like feedvalidator.org, validator.w3.org/feed/, rssboard.org/rss-validator/ etc, these tools checks if feed compliant with different version of RSS …

Continue reading

How to Create QR Code with Google API and PHP

QR Code with Google API and PHP

QR code stands for Quick Response code. It is a two dimensional code designed to capture all the information using a Smart Phone. It is a type of matrix bar-code. They are also known as hardlinks or physical world hyperlinks. This code can be used to encode any information such as text, URL, Telephone numbers, Addresses and any other data. Here I will discuss how to create QR code with …

Continue reading

How to Send Email in PHP

How to Send Email in PHP

Email is the most popular Internet service nowadays. Every day plenty of mail are sent. In this article I am explaining how to send email in php. Every web application used the email feature as in signup response, monthly newsletter etc. Sometimes email contains a plain text, HTML body and file attachments. I will explain each with a simple example. Plain Text Email: PHP has mail() function to send an …

Continue reading

How to Read RSS Feeds using PHP

How to Read RSS Feeds using PHP

RSS feed is used to provide updates of blog or website for various platforms. We can use these feed to display as latest updates, news etc on our site. In this post I am explaining how to read rss feeds using php. Let’s our rss feed url is http://demos.tricksofit.com/files/rss.php Now we will read the content of the url using file_get_contents and store it in a variable called $content. file_get_contents — …

Continue reading