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
The Zend Framework 1.9 release added a new feature - Zend_Rest_Controller. Zend_Rest_Controller and Zend_Rest_Route classes go hand in hand. In the previous versions of the Zend Framework, we have had the Zend_Rest_Server component. We still have. Since Zend_Rest_Server provides an RPC like component violating the REST architectural constraint, it is likely to be deprecated in the future versions of the Zend Framework.
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.
Let us get familiar with some terminology.
RPC From the Wikipedia:
"Remote procedure call (RPC) is an Inter-process communication technology that allows a computer program to cause a subroutine or procedure to execute in another address space (commonly on another computer on a shared network) without the programmer explicitly coding the details for this remote interaction."
In this article I will explain how to write an XML-RPC server and client in PHP.
To be able to understand the article, you have to have some idea about XML-RPC in general.
If you feel like gleaning more information about XML-RPC visit the following websites:
http://www.xmlrpc.com/
http://en.wikipedia.org/wiki/XML-RPC
For an introduction to XML-RPC in PHP visit Introduction to XML-RPC In PHP
Recent comments
2 days 54 min ago
2 days 7 hours ago
2 days 7 hours ago
3 days 12 hours ago
6 days 9 hours ago
1 week 23 hours ago
1 week 2 days ago
1 week 2 days ago
1 week 3 days ago
1 week 6 days ago