Monthly Archives: Dicembre 2009

Tiny url encode and decode with PHP

The first functions make short urls using tinyurl.com service. It’s a very popular function on the web, you can find…

Dicembre 29, 2009

Validate email with smtp

This function validate a mail address in a smart way: if the address to validate has a correct syntax (checked…

Dicembre 27, 2009

Decimal Degrees conversion and distance of two points on google map

Those two functions are usefull when you’re making Google Maps applications: When you show the coordinates of a point, it’s…

Dicembre 26, 2009

PHP bot to grab meteo information from Google

Google has many usefull functions that give you data fast, such as cinema infos, or for meteo forecasts. I think…

Dicembre 24, 2009

ASP web bot that get exchange rates

Thanks to Bank of Italy (Banca d’Italia), there are free exchange rates data that are easy to retrieve and parse,…

Dicembre 23, 2009

PHP Session class with crypted cookies.

This class was built to handle session variables, I made this class because once I had to use session variables…

Dicembre 21, 2009

Javascript Ruler for Google Maps v3 to measure distance on map

Javascript example for measuring distances on a Google Maps with a ruler.

Dicembre 19, 2009

Min height cross browser CSS

In CSS version 2 there is a “min-height” property, but it doesn’t work in the same way in every browser,…

Dicembre 17, 2009

Detect user language with PHP

This function uses php server variables to detect the “possible” language of the browser of the connected user. This let…

Dicembre 16, 2009

Mini gallery/slideshow with PHP and JQuery

Sometimes I’ve had to quickly put in a page a simple slideshow, the first times I’ve searched a lot around…

Dicembre 13, 2009

Clustering many markers with Google Maps v3

I’ve found this blog where Matthias Burtscher converted the Marker Cluster (like the Phoogle2) for Google Maps API v.3. Since…

For next project: Google Analytics API

This is a memo, because at the moment I don’t need to use this new API from Google, but since…

Dicembre 8, 2009

How many users are connected?

This two function returns the number of users connected to your site. Since HTTP is asyncronous, the only way to…

Dicembre 3, 2009