Using the PHP Fileinfo extension
25 February 2009 | Posted by Jeffrey Barke | 4 comments
In my last post, I described how to install the Fileinfo PECL module on a Media Temple (dv) server, but I didn't really talk about what it does, why one might want to install it and how to use it.
The methods/functions in the Fileinfo PHP extension "try to guess the content type and encoding of a file by looking for certain magic byte sequences at specific positions within the file. While this is not a bullet proof approach, the heuristics used do a very good job."1 (Note that this module replaces the Mimetype module.)
class HMGoogleOverlay
13 July 2008 | Posted by Jeffrey Barke | 1 comment
Note—HMGoogleOverlay is an undocumented method of the HeatMapAPI. The documentation here is unofficial and unauthorized, and it simply represents my best guess as to what HMGoogleOverlay is.
class HMGoogleOverlay
A HMGoogleOverlay augments the map with a density map image. It implements the GOverlay interface and thus is added to the map using the GMap2.addOverlay() method.
Constructor
| Constructor | Description |
|---|---|
HMGoogleOverlay(url) |
Creates a GOverlay. The url parameter is the URL (string) of the density map and is generated via the GEOHeatmap.GetURL() method. |
Note—HMGoogleOverlay does not have any public methods. It does not support either show() or hide().

