Download remote file with cURL

Posted on March 12, 2013

cURL stands for "Client for URLs". cURL is a library (libcurl) which allows PHP to communicate with other servers with different type of protocols. With the cURL its easy to download remote file/s with the following PHP code example: (more…)

Read More

JSON Overview

Posted on February 10, 2013

JSON (JavaScript Object Notation) is the light weight data interchange format like XML i.e like the XML it’s also platform independent and its great alternative to XML due to followings: JSON can be parsed easily rather than XML although XML is easier to read due to better hierarchical nature. In the Ajax application as well as in PHP application, JSON is much faster and easy to be parsed than XML. JSON uses array as well as object. ...

Read More

Session v/s Cookies

Posted on January 1, 2013

We know that HTTP request is stateless which means any request doesn't know anything about the user who is sending request i.e each HTTP transaction is fresh without having any knowledge of any other HTTP transaction. Both cookie and session are available to overcome the stateless request and both accomplish same task of storing data across multiple pages/request for a site. I would like to share a few differences between session and ...

Read More