Category Archives: snippet

Sanitize database inputs

This snippet sanitizes database inputs.

Detect location by IP

This snippet detects the location of a specific IP. If the location isn’t found, UNKNOWN is returned.

Get tweets by hashtag

This snippet gets all tweets of a specific hashtag.

Detect browser language

This snippet detects the browser language and provides $available_languages as an array(‘en’, ‘fr’, ‘es’).