PHP script for live Hulhule flight info
The Maldives Airports Company has rolled out a website (http://www.fis.com.mv/) where real-time flight arrival/departure information is available. It's about time they did that and I am sure many people will find it very useful.
I wrote some code yesterday for Nattu, who is currently developing a new website for Haveeru News, to get the data from the Flight Information Services (FIS) website and display it on the Haveeru website. Haveeru has access to an XML feed of the data with more fields available than that shown at the FIS site. The script I wrote implements a class that parses the XML file and provides easy access to the flight information via the class properties.
Sadly, the XML feed is not (yet) available to the public and so today I modified the code so that it works by scraping the publicly available data on the FIS website. The code implements an object called "flightinfo" that can be used in any of your PHP applications and the data displayed as you please. I've included a demo sample file as well.
- Download the flightinfo script
I wrote some code yesterday for Nattu, who is currently developing a new website for Haveeru News, to get the data from the Flight Information Services (FIS) website and display it on the Haveeru website. Haveeru has access to an XML feed of the data with more fields available than that shown at the FIS site. The script I wrote implements a class that parses the XML file and provides easy access to the flight information via the class properties.
Sadly, the XML feed is not (yet) available to the public and so today I modified the code so that it works by scraping the publicly available data on the FIS website. The code implements an object called "flightinfo" that can be used in any of your PHP applications and the data displayed as you please. I've included a demo sample file as well.
- Download the flightinfo script