Mini bots for your code



Check word spelling with Google

Check spelling 'wokipedia':

echo $mb->doSpelling('wokipedia');
wikipedia

Get exchange rates from bank of italy

How many u.s. dollars for 1 euro?:

echo $mb->doExchangeRate('USD','2009-12-24');
1.4276

Make tiny url with tinyurl.com

Tiny url for http://www.barattalo.it/tag/file_get_contents/:

echo $mb->doShortUrl('http://www.barattalo.it/tag/file_get_contents/');
http://tinyurl.com/y8f7ehc

Decode tiny url

Decode any tiny url:

echo $mb->doShortURLDecode('http://tinyurl.com/y8f7ehc');
http://www.barattalo.it/tag/file_get_contents/

Meteo with Google

Get meteo data for Milan:

print_r( $mb->doMeteo('Milan') , true );
Array
(
    [0] => Array
        (
            [date] => 2010-09-10
            [title] => Chiaro
            [img] => http://www.google.it/images/weather/sunny.gif
            [min] => 14°C
            [max] => 26°C
        )

    [1] => Array
        (
            [date] => 2010-09-11
            [title] => Soleggiato
            [img] => http://www.google.it/images/weather/sunny.gif
            [min] => 14°C
            [max] => 26°C
        )

    [2] => Array
        (
            [date] => 2010-09-12
            [title] => Parzialmente nuvoloso
            [img] => http://www.google.it/images/weather/partly_cloudy.gif
            [min] => 15°C
            [max] => 27°C
        )

    [3] => Array
        (
            [date] => 2010-09-13
            [title] => Parzialmente nuvoloso
            [img] => http://www.google.it/images/weather/partly_cloudy.gif
            [min] => 15°C
            [max] => 24°C
        )

)

Get geo info from ip address

Get ip geo data for your ip:

print_r( $mb->doGeoIp() , true );
Array
(
    [Host Name] => 38.107.191.95
    [IP Address] => 38.107.191.95
    [Country] => United States
    [Country code] => US (USA)
    [Region] => 
    [City] => 
    [Postal code] => 
    [Calling code] => +1
    [Longitude] => -97
    [Latitude] => 38
)

SMTP mail validation

Validate an email address with smtp call:

print_r( $mb->doSMTPValidation("ponsgiulio@rockit.it") , true );
Array
(
    [0] => Unverified address: aspmx.l.google.com said: 550-5.1.1 The email account that you tried to reach does not exist. Please try

    [1] => 550
)

Url exists

Check if a url is correct:

echo( $mb->url_exists("http://www.google.it");
1

Get Url infos

Rertrieves info about a url:

print_r( $mb->getUrlInfo("http://www.rockit.it") , true );
Array
(
    [keywords] => 
    [description] => Rockit il più grande portale di musica italiana. MP3, recensioni,foto, video, blog, nuovi dischi, concerti, eventi, servizi, community. Online da oltre 10 anni.
    [title] => Rockit
    [favicon] => http://www.rockit.it/favicon.ico
    [images] => Array
        (
            [0] => http://www.rockit.it/dbimg/homepagefuochi/474.jpg
            [1] => http://www.rockit.it/dbimg/banner/1105.jpg
            [2] => http://www.rockit.it/dbimg/homepageroller/261.jpg
        )

)



download php from this page | see more bots examples