Web Services and PHP - SOAP vs XML-RPC vs REST

What is web services?

In a typical web surfing scenario, a visitor visits a website and use the functionality provided by that particular website.HTTP request is send to server from web browsers and server responses are translated by browser to display the desired result of the visitor. But, this scenario has been changed in the recent days. You don’t need to visit the particular website to use their service and functionality if they are providing web services. Web services are set of platform independent exposed APIs(functions) which can be used used from remote server over the Internet. There are basically two parties involved in this, one which provides a set of exposed APIs and the another one ,commonly know as web services consumers,is the party which uses the functionality and services provided by web services providing party.

Read more

Popularity: 10% [?]

Getting country , city name from IP address in PHP

Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I’ve come up with the answer of this question. I’ve used the API from hostip.info to fetch the country name , city name and country code from the given IP address. I’ve mad this function in PHP which uses XML response from hostip.info and extracted country name, city name and country code using regular expression.

Read more

Popularity: 32% [?]

Getting technorati ranking in PHP without using their API

Today, I was going through the Technorati API to find the rank of the blog using PHP. Those who doesn’t know about Technorati, Technorati is known as the authority for tracking, indexing and ranking the blog sytems. When I went through the Technorati Api, I found that it is not that hard to get the ranking of a blog which is indexed in Technorati.You need to get the developer APIĀ  key from Technorati and use their Web Services to get the ranking of a blog.

Read more

Popularity: 6% [?]

Zend framework is the most popular PHP framework

Today, I would to announce the result of poll which I’ve started last week titled “Which is the best PHP framework?”. And it seems Zend framework is one of the most popular PHP framework among the PHP project developers.

Read more

Popularity: 9% [?]

Prevent form post request from another domain in PHP

HTTP POST request from outside domain is one of the way of attacking your website. A intruder can use JavaScript in other domain or localhost to send the repetitive POST request to your web pageĀ  containing PHP script. We must prevent this kind of cross domain form posting which might be harmful of our website.

Read more

Popularity: 10% [?]

← Previous PageNext Page →