How To Install RapidSSL SSL Certificate - Nginx Server

In this article, I will describe how to use the SSL certificate provided by RapidSSL with Nginx server.

openssl is a command line tool to use various cryptography functions.

The req command of openssl provides PKCS#10 X.509 Certificate Signing Request (CSR) management facilities.

We will generate a new certificate request for the domain .

openssl req -new -nodes -keyout www.example.com.key -out www.example.com.csr
Taxonomy upgrade extras: 

Programatically Create DateTextBox

How to create dijit.form.DateTextBox widget programmatically

There are two ways to create Dojo's widgets

  1. Declarative
  2. Programmatic

It is often a matter of project preference and personal opinion to decide which approach to take. Many developers are against mixing up markup and JavaScript.

Programmatically creating widgets has its advantages. For instance, you may want to create a date picker when a button is clicked.

In a previous article we discussed how to add a Dojo date picker declaratively. We also showed how to add Dojo date picker without writing a singe line of JavaScript using the Zend Framework.

Let's create a dijit.form.DateTextBox widget programmatically step by step.

FOSS Project: 
Content Type: 

Create RESTful Applications Using The Zend Framework - Part III : Managing API Key

In the first two posts of this series, we discussed how to route REST requests to controllers and return HTTP response code. In this article I will talk about managing API keys.

Having the clients send API key within the HTTP header is convenient to handle. We can quickly check the HTTP request header and decide whether to allow or deny the request.

As a prerequisite you should be familiar writing front controller plugins. Let's write a front controller plugin that does the following:

    Taxonomy upgrade extras: 

    Create RESTful Applications Using The Zend Framework - Part II : Using HTTP Response Code

    In our last example, we used Zend_Rest_Route and Zend_Rest_Controller to demonstrate how to map requests to controller actions. We also used the response object to send text content in the HTTP response. In this article let us send appropriate HTTP response codes using the response object.

    RFC 2616 describes HTTP response codes to use in various contexts.

    In this example, we will use a few response codes

      FOSS Project: 
      Content Type: 

      Making Code More Readable Using The Fluent Interface

      From the Wikipedia
      "In software engineering, a fluent interface (as first coined by Eric Evans and Martin Fowler) is a way of implementing an object oriented API in a way that aims to provide for more readable code."

      Let us explore the fluent interface with the help of an example.

      class Customer
      protected $_name;
      protected $_street;
      protected $_city;
      protected $_country;

      public function setName($name)
      $this->_name = $name;

      Content Type: 

      XML RPC Client Using PHP PEAR - A Real World Example: Ping Technorati

      In a previpus blog post we discussed how to consume the Technorati ping web service using XML-RPC. The PEAR package XML_RPC2 provides convenient client and server objects. You can call the remote methods as if they were the methods of the client object.

      In this post, let us accomplish the same using a PEAR package XML_RPC2. We will write a client script to update Technorati when there is new post in your blog site.

      Taxonomy upgrade extras: 

      XML RPC Client In PHP - A Real World Example: Ping Technorati

      If you are familiar with blogosphere you know what is Technorati.

      Technorati is an Internet search engine for searching blogs. You can submit your blog to Technorati and ping their servers when your blog site is updated. when you ping Technorati their web crawlers read the updated information on your site.

      Technorati offers an XML-RPC ping web service to allow blogs to notify content changes.

      In this article we discuss how to write a PHP script to programatically ping Technorati when there is new content in your site.

      Constants In PHP

      We are all familiar with variables. As the name suggests the value of the given variable tends to vary.

      $foo 'banana';

      The above script illustrates the usage of variables. Variables in PHP are represented by a dollar sign followed by the name.

      Just like variables, PHP offers constants. As the name suggests the value of the constant does not change throught the lifetime of the script.

      How do you use constants?

      Content Type: