Line 101 has a minor bug. Here is the corrected line: $url .= (FALSE === strpos($url, '?') ? "?" : "&") . $encoded; Cheers, Brian