Posts Tagged ‘php’

Page 2 of 812345...Last »

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. Full story

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. Full story

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. Full story

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. Full story
Tags: ,

Don’t use “and” and “or” logical operator in PHP, it has flaw

Today, When I was doing some programming stuffs and I found out that there is serious flaw in the "and" , "or" logical operator of PHP. I'm not talking about the symbol "||" and "&&" logical operator. I'm talking about the "and" and "or" logical operator (operator with words). Full story
Tags: ,
Page 2 of 812345...Last »
Copyright © 2012 Roshan Bhattarai's Blog. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.