APR
2012
04
1 Comment
130 Hits
Troubleshoot: PHP `No Input File Specified` Error
Posted under: PHP, Panada Framework

Are you using pretty URL on your web application or website? Having problem with "No input file specified error" from PHP? Confused why my PHP code is not working? The PHP code is working flawlessly on localhost but why is not  working now? Which php file is causing this error? Is it web server or PHP related problem?

Read More
NOV
2011
16
0 Comments
949 Hits
Building Captive Portal Using PHP and iptables Firewall on Linux

What is a captive portal?

There are many definitions out there which are explaining about captive portal like in TechTarget SearchMobileComputing, Answers.com, and Wikipedia. Still haven't got it? Well, have you found yourself connected in a public hotspot such as at the public venues, airport lounges, or hotel plaza? it's so common if we're going to browse to any pages using our favorite web browser we're forced to see a page to accept the Terms of Service (ToS) of the hotspot provider or submits username and password in order to be able to continue browse the web. Those kind of web pages are so called captive portal.

Read More
AUG
2011
13
1 Comment
872 Hits
Easy Parsing Twitter's RSS Feed With PHP
Posted under: PHP, Tutorial

Twitter LogoFrom my previous post about fetching Tweets from Twitter by using PHP we're able to search tweet posts with Twitter API help in RSS format (XML). The specification of RSS itself described here. In order to be able to get information needed from the feed, we need to parse it into other form of data which is easy to process with PHP. In this post I will explain how to parse every items on the feed into array.

Read More
AUG
2011
12
1 Comment
843 Hits
Fetching Tweets on Twitter by PHP
Posted under: PHP, Tutorial

Twitter BirdIf you have your own blog which is PHP powered, you can show your tweets on twitter by using PHP easily. According to GET Search Twitter API documentation and Using Search documentation, we can do any search for tweets related to any keyword provided. The resource URL for searching is:

http://search.twitter.com/search.format

where format is the format we would like to get. It could be rss, atom, or even json. The Twitter search API is very powerful, even you can get any tweets which is posted by someone near you.

Read More
APR
2011
23
1 Comment
824 Hits
Google Weather API
Posted under: PHP

Google has a weather API which is very fast. It is able to show weather forecast of current condition and the following three days on many cities over the world. It is also able to show weather forecast based on longitude and latitude coordinate parameters. The returned forecast is in XML format. The API itself is undocumented by Google and may changed without notice. From many sources on the web, here's the URL of the Google weather API:

http://www.google.com/ig/api?weather=[cityname]
Read More