Displaying posts tagged: php
2009-12-04 12:33:43
8 Comments
Today Google announced a public DNS service they are hosting. They claim that their DNS infrastructure is faster and more secure, because their servers do some clever things. I wanted to test their performance claims, so I wrote a little script to measure a lookup times for different domains across a number of DNS servers.
Methodology
...
2008-06-04 16:25:57
No Comments
Recently I had the need to convert Ordnance Survey East/North coordinates to Latitude and Longitude. By using the resources available on the OS site I wrote the following piece of PHP code:
<?php
// Converts OS Easting/Northing to Lat/Long
// by bramp
function Marc($bf0, $n, $PHI0, $PHI) {
/*
Compute meridional arc.
Input: -
ellipsoid semi ...
