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
There are two ways to create Dojo's widgets
Programmatically creating widgets has its advantages. For instance, you may want to create a date picker when a button is clicked.
Let's create a dijit.form.DateTextBox widget programmatically step by step.
Create RESTful Applications Using The Zend Framework - Tutorial Series
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:
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
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.
public function setName($name)
$this->_name = $name;
Series of articles about XML-RPC with PHP.
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.
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.
We are all familiar with variables. As the name suggests the value of the given variable tends to vary.
$fruit = 'orange';
$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.