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
There are two ways to create Dojo's widgets
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.
Create RESTful Applications Using The Zend Framework - Tutorial Series
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:
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.
<?php
class Customer
{
protected $_name;
protected $_street;
protected $_city;
protected $_country;
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.
<?php
$fruit = 'orange';
print $foo;
$foo = 'banana';
print $foo;
?>
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.
Recent comments
7 weeks 2 days ago
10 weeks 3 days ago
13 weeks 14 hours ago
13 weeks 14 hours ago
14 weeks 2 days ago
14 weeks 6 days ago
17 weeks 1 day ago
17 weeks 6 days ago
36 weeks 1 day ago
37 weeks 2 days ago