July 2008

PHP Countires, States, Provinces and Territories Array

Tags:

A couple of projects ago I needed the ability to have international users. I looked for some php functions that would make the task of registering users a little easier. I found some html lists and turned them into php functions that return arrays

Calculating Distance in Miles from Latitude and Longitude

Tags:

Finding good examples for Calculating Distance in Miles from Latitude and Longitude Using Mysql and PHP wasn’t as easy as I thought it would be. I thought I would compile the working quires and the functions that I wrote/found.

I found a very good paper on the topic at Scribd. I used one the the examples from this paper.

php session drop cookie fix for Internet Expoler

Tags:

I was updating some code on dirtondirt.com.  We had changed the way sessions/logins where used on the site. Everything worked great in Firefox.  But we were getting complaints that it was randomly dropping logged in users using IE .  I was was not able to recreate the issue so it was very hard to troubleshoot. I believe that this method hacks around IE 4k size on disk issue (if the cookie is larger than 4k then IE has a tendency to drop it).After a couple hours of research I found these solutions.

Code and Content Copyright 2010, Jesse Baird.