International Airport codes download

During a recent project I needed a database of IATA airport codes. Airports around the world are universally known by a unique three-letter code: the “International Air Transport Association (IATA) Location Identifier”. It is much easier for pilots, travel agents, frequent flyers, baggage handlers and anyone having anything to do with airlines to say and write LGA then the full “New York, NY – La Guardia Airport“.
(more…)

Read More

Review: Ibvpn VPN service – Giveaway of 2 accounts

ibVPN.com is giving away 2 full year accounts for codediesel readers. ibvpn provides a paid VPN service for web anonymity. A VPN is one of the essential elements of modern networks; besides helping companies connect geographically distant networks securely, a VPN also allows one to overcome online restrictions and bypass internet censorship from anywhere and anytime. Normally I do not use a VPN, but recently I decided to try ibVPN.com, who generously offered me a trial account for testing.
(more…)

Read More

Searching server files using GREP

During debugging the majority of my time is spent in searching for specific text. Searching on the local machine is a breeze via a IDE, but if I’ve an application hosted on a remote server then it can get difficult and slow, unless of course you have access to SSH when you can use good-old Grep. But many times the server does not have SSH access at which time I have to rely on using Linux commands though PHP.

So for example the following will allow me to recursively search all the files in a directory for the string ” mail”. I just upload the file to the server directory from where I need to make the search. Here I’m using the PHP backtick operator that allows me to escape to the shell, execute the specified command, and return the result in the variable $output.
(more…)

Read More