XML-RPC and XML-RPC Server Classes

What is XML-RPC?

Quite simply it is a way for two computers to communicate over the internet using XML. One computer, which we will call the client, sends an XML-RPC request to another computer, which we will call the server. Once the server receives and processes the request it will send back a response to the client.

For example, using the MetaWeblog API, an XML-RPC Client (usually a desktop publishing tool) will send a request to an XML-RPC Server running on your site. This request might be a new weblog entry being sent for publication, or it could be a request for an existing entry for editing. When the XML-RPC Server receives this request it will examine it to determine which class/method should be called to process the request. Once processed, the server will then send back a response message.

For detailed specifications, you can visit the XML-RPC site: http://www.xmlrpc.com/

This can be easily implemented using CodeIgniter’s framework: http://codeigniter.com/

CodeIgniter’s XML-RPC classes permit you to send requests to another server, or set up your own XML-RPC server to receive requests. Overview XML-RPC is a Remote Procedure Calling protocol that works over the Internet.


An XML-RPC message is an HTTP-POST request. The body of the request is in XML. A procedure executes on the server and the value it returns is also formatted in XML. Procedure parameters can be scalars, numbers, strings, dates, etc.; and can also be complex record and list structures.

XML-RPC Specification : http://www.xmlrpc.com/spec

Object Oriented Programming Interview Questions

OOPS Interview Questions – Basics and Advanced

These are some basics and advanced questions usually asked in the field of OOP (Object Oriented Programming) 

1) Explain the rationale behind Object Oriented concepts? Object oriented concepts form the base of all modern programming languages. Understanding the basic concepts of object-orientation helps a developer to use various modern day programming languages, more effectively.

2) Explain about Object oriented programming? Object oriented programming is one of the most popular methodologies in software development. It offers a powerful model for creating computer programs. It speeds the program development process, improves maintenance and enhances reusability of programs.

3) Explain what is an object? An object is a combination of messages and data. Objects can receive and send messages and use messages to interact with each other. The messages contain information that is to be passed to the recipient object.

4) Explain the implementation phase with respect to OOP? The design phase is followed by OOP, which is the implementation phase. OOP provides specifications for writing programs in a programming language. During the implementation phase, programming is done as per the requirements gathered during the analysis and design phases.

5) Explain about the Design Phase? In the design phase, the developers of the system document their understanding of the system. Design generates the blue print of the system that is to be implemented. The first step in creating an object oriented design is the identification of classes and their relationships.

6) Explain about a class? Class describes the nature of a particular thing. Structure and modularity is provided by a Class in object oriented programming environment. Characteristics of the class should be understandable by an ordinary non programmer and it should also convey the meaning of the problem statement to him. Class acts like a blue print.

7) Explain about instance in object oriented programming? Every class and an object have an instance. Instance of a particular object is created at runtime. Values defined for a particular object define its State. Instance of an object explains the relation ship between different elements.

8) Explain about inheritance? Inheritance revolves around the concept of inheriting knowledge and class attributes from the parent class. In general sense a sub class tries to acquire characteristics from a parent class and they can also have their own characteristics. Inheritance forms an important concept in object oriented programming.

9) Explain about multiple inheritance? Inheritance involves inheriting characteristics from its parents also they can have their own characteristics. In multiple inheritance a class can have characteristics from multiple parents or classes. A sub class can have characteristics from multiple parents and still can have its own characteristics.

10) Explain about encapsulation? Encapsulation passes the message without revealing the exact functional details of the class. It allows only the relevant information to the user without revealing the functional mechanism through which a particular class had functioned.

11) Explain about abstraction? Abstraction simplifies a complex problem to a simpler problem by specifying and modeling the class to the relevant problem scenario. It simplifies the problem by giving the class its specific class of inheritance. Composition also helps in solving the problem to an extent.

12) Explain the mechanism of composition? Composition helps to simplify a complex problem into an easier problem. It makes different classes and objects to interact with each other thus making the problem to be solved automatically. It interacts with the problem by making different classes and objects to send a message to each other.

 13) Explain about polymorphism? Polymorphism helps a sub class to behave like a parent class. When an object belonging to different data types respond to methods which have a same name, the only condition being that those methods should perform different function.

14) Explain about overriding polymorphism? Overriding polymorphism is known to occur when a data type can perform different functions. For example an addition operator can perform different functions such as addition, float addition etc. Overriding polymorphism is generally used in complex projects where the use of a parameter is more.

15) Explain about object oriented databases? Object oriented databases are very popular such as relational database management systems. Object oriented databases systems use specific structure through which they extract data and they combine the data for a specific output. These DBMS use object oriented languages to make the process easier.

16) Explain about parametric polymorphism? Parametric polymorphism is supported by many object oriented languages and they are very important for object oriented techniques. In parametric polymorphism code is written without any specification for the type of data present. Hence it can be used any number of times.

17) What are all the languages which support OOP? There are several programming languages which are implementing OOP because of its close proximity to solve real life problems. Languages such as Python, Ruby, Ruby on rails, Perl, PHP, Coldfusion, etc use OOP. Still many languages prefer to use DOM based languages due to the ease in coding.

Others Frequenlty Asked

1) Explain what is object oriented programming language? Object oriented programming language allows concepts such as modularity, encapsulation, polymorphism and inheritance. Simula is credited to be the first object oriented language. Objects are said to be the most important part of object oriented language. Concept revolves around making simulation programs around an object.

2) Name some languages which have object oriented language and characteristics? Some of the languages which have object oriented languages present in them are ABAP, ECMA Script, C++, Perl, LISP, C#, Tcl, VB, Ruby, Python, PHP, etc. Popularity of these languages has increased considerably as they can solve complex problems with ease.

3) Explain about UML? UML or unified modeling language is regarded to implement complete specifications and features of object oriented language. Abstract design can be implemented in object oriented programming languages. It lacks implementation of polymorphism on message arguments which is a OOPs feature.

4) Explain the meaning of object in object oriented programming? Languages which are called as object oriented almost implement everything in them as objects such as punctuations, characters, prototypes, classes, modules, blocks, etc. They were designed to facilitate and implement object oriented methods.

5) Explain about message passing in object oriented programming? Message passing is a method by which an object sends data to another object or requests other object to invoke method. This is also known as interfacing. It acts like a messenger from one object to other object to convey specific instructions.

6) State about Java and its relation to Object oriented programming? Java is widely used and its share is increasing considerably which is partly due to its close resemblance to object oriented languages such as C and C++. Code written in Java can be transported to many different platforms without changing it. It implements virtual machine.

7) What are the problems faced by the developer using object oriented programming language? These are some of the problems faced by the developer using object oriented language they are: – 1) Object oriented uses design patterns which can be referred to as anything in general. 2) Repeatable solution to a problem can cause concern and disagreements and it is one of the major problems in software design.

8) State some of the advantages of object oriented programming? Some of the advantages of object oriented programming are as follows: – 1) A clear modular structure can be obtained which can be used as a prototype and it will not reveal the mechanism behind the design. It does have a clear interface. 2) Ease of maintenance and modification to the existing objects can be done with ease. 3) A good framework is provided which facilitates in creating rich GUI applications.

9) Explain about inheritance in OOPS? Objects in one class can acquire properties of the objects in other classes by way of inheritance. Reusability which is a major factor is provided in object oriented programming which adds features to a class without modifying it. New class can be obtained from a class which is already present.

10) Explain about the relationship between object oriented programming and databases? Object oriented programming and relational database programming are almost similar in software engineering. RDBMS will not store objects directly and that’s where object oriented programming comes into play. Object relational mapping is one such solution.

11) Explain about a class in OOP? In Object oriented programming usage of class often occurs. A class defines the characteristics of an object and its behaviors. This defines the nature and functioning of a specified object to which it is assigned. Code for a class should be encapsulated.

12) Explain the usage of encapsulation? Encapsulation specifies the different classes which can use the members of an object. The main goal of encapsulation is to provide an interface to clients which decrease the dependency on those features and parts which are likely to change in future. This facilitates easy changes to the code and features.

13) Explain about abstraction? Abstraction can also be achieved through composition. It solves a complex problem by defining only those classes which are relevant to the problem and not involving the whole complex code into play.

14) Explain what a method is? A method will affect only a particular object to which it is specified. Methods are verbs meaning they define actions which a particular object will perform. It also defines various other characteristics of a particular object.

15) Name the different Creational patterns in OO design? There are three patterns of design out of which Creational patterns play an important role the various patterns described underneath this are: – 1) Factory pattern 2) Single ton pattern 3) Prototype pattern 4) Abstract factory pattern 5) Builder pattern

16) Explain about realistic modeling? As we live in a world of objects, it logically follows that the object oriented approach models the real world accurately. The object oriented approach allows you to identify entities as objects having attributes and behavior.

 17) Explain about the analysis phase? The anlaysis or the object oriented analysis phase considers the system as a solution to a problem in its environment or domain. Developer concentrates on obtaining as much information as possible about the problem. Critical requirements needs to be identified.

Create SEF Tags – Helpers

SEF Helpers

This function will create unique links for your URL’s
It will genrate a string of different tags joined together.

// ------------------------------------------------------------------------

* SEF Helpers
* @package SEO/SEM
* @subpackage Helpers
* @category Helpers
* @author SEO/SEM 316 Dev Team
* @link http://

// --------------------------------------------------------------------------

* Create SEF Tags
* This function will create unique links for your URL's
* It will genrate a string of different tags joined together.
* @category function
* @access public
* @param string
* @return string
function create_sef_tags($tag_string='')
// Clean the string with all the dirty or unwanted characters
$mixed_search = array("!", "#", "$", "%", "^","&", "*", "(",
")", "+","=", "|", "\\", "{", "[",
"}", "]", ":", ";", "\"","'", "<", ",", ">", "?","/", "~", "`", "@", ".");
$mixed_replace = "";
$tag_string = str_replace($mixed_search,$mixed_replace,$tag_string);

// Replace space or underscore with (minus) character
$mixed_search = array(" ","_");
$mixed_replace = "-";
$tag_string = str_replace($mixed_search,$mixed_replace,$tag_string);

// Convert all the characters to lower case
$tag_string = strtolower($tag_string);

// Return formated string


Lets try and example :

// Example
echo create_sef_tags('@@Austin Noronha 316 Rockz.......@@');



So enjoy the code………

Do you want to share this code or provide a short link to this post use :


Mangalore – Simply The Best

Manglore - Nariyals(Coconuts)

Mangalore - Nariyals(Coconuts)

Mangalore (pronounced maengalor ; Tulu: Kudla, Kannada: Mangaluru; Konkani: Kodial, Beary: Maikala) is the chief port city of the Indian state of Karnataka. Bounded by the Arabian Sea and the Western Ghat mountain ranges, Mangalore is the administrative headquarters of the Dakshina Kannada (formerly South Canara) district in southwestern Karnataka.

Mangalore derives its name from the local Hindu deity Mangaladevi. It developed as a port on the Arabian Sea – remaining, to this day, a major port of India. Lying on the backwaters of the Netravati and Gurupura rivers, Mangalore is often used as a staging point for sea traffic along the Malabar Coast. The city has a tropical climate and lies on the path of the Arabian Sea branch of the South-West monsoons. Mangalore’s port handles 75% of India’s coffee exports and the bulk of the nation’s cashew exports.

How to go to Mangalore?

By plane:

Mangalore International Airport , at Bajpe, about 20 km from the city centre. Currently there are daily flights to Mumbai, Bangalore, Goa, Kochi and Calicut in the domestic segment and weekly/bi-weekly flights to Dubai, Abu Dhabi, Muscat (Oman), Doha (Qatar), Kuwait and Bahrain in the international segment.

Filghts: Air India, Jet Airways, Kingfisher Airlines, and Air India Express currently operate flights to Mangalore.

By train:

Mangalore has two big railway stations.

  • Mangalore Central (IR station code : MAQ) is located at Hampankatta, in the heart of the city. It is a terminus and is used only by the trains which terminate at Mangalore.
  • Mangalore Junction (IR station code : MAJN) is situated in Kankanady, about 5 km from the city centre. Most long-distance trains and all trains not terminating at Mangalore stop at this station.

I prefer the Private BUS ‘s or the Train cause you can enjoy the Konkan Greenary and Lots more!!

How to get around in Mangalore?

By bus
There are numerous private bus companies which run bus services within the city of Mangalore and its suburbs. Public and Private Bus’s. The minimum bus fare is Rs. 3.25 .  In addition city bus service, there is limited stop (usually called express) .
By cab
White Ambassador Cabs / Indicas are available – usually used by passengers on long-haul routes.  Prepaid cabs are available from the airport to the city – this is generally at a flat rate of Rs. 350-400.
By Autorickshaws
They are available all throughout Mangalore City – starting fare is Rs.13. Pre-paid autos were available from the City Railway Station and the KSRTC bus stand at Bejai, but not any more.

I prefer the CELL ONE private pre-paid cabs. They are much more reasonable and the drivers are very friendly!!

Yummy Ice Creams !!!!

Ideals ice cream parlour

Ideals ice cream parlour

Ice creams - banana split, Gadbad, tiramisu

Ice creams - banana split, Gadbad, tiramisu

Ideals @ Hampankatta. There are three parlours (2 ideals, proximity located 200 metres of one another. One is located near the Milgres junction and the other one is near the next junction heading towards the market) 3rd one Pabba’s, at Lalbagh diagonally facing Saibeen Complex . Ideals is marked as one of the best ice cream in DK, when you are in mangalore this is a must try place. You have to try out “GADBAD” ice cream which is only available in Ideals and the best of all ice creams. Gadbad icecream is an old favorite which has dry fruits and fresh ones chopped up with nuts, layered with icecream (strawberry and vanilla) and topped off with Jello. Hot favorites are “CHOCOLATE DAD” and “TIRAMISU“.

If your one of the HIGH SPIRITS then !!!

The Liquid Lounge (Balmatta Road – the general youth hangout!) : Good music, good ambiance, good beer!

Lets be on the Safer Side!!

Three things will do more to prevent an upset stomach or other traveling aliments than anything else:

  1. Always choose water from filters (Aquaguard water) or bottled mineral water, just to be on the safe side.
  2. Carrying water free hand sanitizer is a must (Germ-X, Purell, etc.) Go ahead and eat with your hands like everyone else! Once you use your hand sanitizer your hands are cleaner than the silverware that was washed with water you don’t want to drink.
  3. Always choose foods that are steaming hot. Food is often prepared ahead of time so you want to see it cooked or see the steam coming of the food.

Best Churches !!!

St Lwarence Shurch

St Lwarence Shurch

St Lwarence statue

St Lwarence statue

St Lwarence - mass timings

St Lwarence - mass timings

St Lwarence Church - Address and Website

St Lwarence Church - Address and Website

  • St. Lawrence Church (A place of Miracle)
    Attur North P.O. – 576 117
    Karkala Taluk, Udupi District
  • St. Aloysious, Milagris

In Brief:

  • Mangalore is a port city and the headquarters of Dakshina Kannada district in the coastal region of Karnataka State in India.
  • Mangalore is the gateway to Karnataka.
  • It is one of the five talukas (other than Bantwal, Puttur, Sullia, Belthangady taluks) of the Dakshina Kannada District. This District formerly had 8 talukas, but these were split in August 1997 and the remaining talukas, namely Udupi, Kundapur and Karkala then formed a part of the Udupi district,but there is no division found in the living of two cities.
Mangalore is named after the Goddess Mangaladevi. Other names used by the locals are ‘Mangalooru’ (Kannada), ‘Kudla’ (Tulu), ‘Kodial’ (Konkani), ‘Mikala’ (Beary) and ‘Mangalapuram (Malayalam),’Manjarun'(sanskrith).

Secure PHP Applications (PHP Security)

To understand PHP security better let us first understand what is PHP and Security

Security is a process, not a product, and adopting a sound approach to security during the process of application development will allow you to produce tighter, more robust code.

(PHP Hypertext Preprocessor) A scripting language used to create dynamic Web pages. With syntax from C, Java and Perl, PHP code is embedded within HTML pages for server side execution. It is commonly used to extract data out of a database and present it on the Web page

PHP is a powerful scripting language for building web applications, and also one of the easiest ways for hackers to gain access to your web server. Developers need to understand how their scripts can be exploited in order to protect them.

PHP is widely used in many high-end applications that maybe a Web Based (Internet) or and Intranet Applications. We can say that from the total PHP in Web Based (Internet) Applications : 80% and Intranet Applications:20%.

As IBM as suggested few basic principles that we could follow to make our website secure and guard our application from any vulnerabilities:

Validate input
Guard your file system
Guard your database
Guard your session data
Guard against Cross-Site Scripting (XSS) vulnerabilities
Verify form posts
Protect against Cross-Site Request Forgeries (CSRF)
  1. Validate input
  2. Guard your file system
  3. Guard your database
  4. Guard your session data
  5. Guard against Cross-Site Scripting (XSS) vulnerabilities
  6. Verify form posts
  7. Protect against Cross-Site Request Forgeries (CSRF)