- You are using subversion as the version control software for your project
- Your project depends on other projects, perhaps third party libraries
- The other projects also use subversion as the version control software for their project
PHP language provides the mail() function. But it requires properly configured mail server on the local machine. Developers often don't have the necessary infrastructure at their disposal. Sometimes sending emails from a PHP script becomes a frustrating experience.
If you are a
you have come to the right place.
For the impatient, the script is posted at the end of the article.
Before we delve into writing the script, let us summarize the environment.
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;
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 reading this post you already know what is SVN. If you don' I recommend you to read
There is also a free and excellent book on subversion at http://svnbook.red-bean.com/
In this article we will quickly set up an SVN server and also demonstrate how to use it.
First and foremost, make sure you have subversion installed on your server and client.
yum install subversion
We discussed how to install LAMP in one of our previous articles. Some of you may be wondering how to create databases, users and tables on your newly installed MySQL server. This blog post introduces the preliminary steps to work with your new LAMP server.
We are going to learn the following:
Apache HTTP server is capable of hosting multiple websites on the same server. The feature is popularly known as virtual host.
The term Virtual Host refers to the practice of running more than one web site (such as www.company1.com and www.company2.com) on a single machine. When you configure virtual hosts your web server runs many websites at any given instance. You don't need to edit Apache configuration file and restart Apache every time you switch to a different website.
Follow the instructions below to configure virtual hosts in Apache.
Don't miss out the PHP CLI Interactive mode. You can invoke PHP interactive shell from the terminal
Example 1: Do you want to see the output of xmlrpc_encode_request()
php > echo xmlrpc_encode_request('myIPAddress', array('username','password')); <?xml version="1.0" encoding="iso-8859-1"?> <methodCall> <methodName>myIPAddress</methodName> <params> <param> <value> <string>username</string> </value>
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.
Copyright 2008-2011 Sudheera Satyanarayana
Tech Chorus by Sudheera Satyanarayana is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 India License.Based on a work at techchorus.net.Permissions beyond the scope of this license may be available at http://www.techchorus.net/contact.
Copyright © 2015, Sudheer Satyanarayana