Page 1 | Page 2 | Page 3 | Page 4 |
"; // test getIp // ------------------------------------------------------------- echo "

getIP method

"; echo "Check getIP function, your ip is:
".($mb->getIP())."
"; echo "
"; // test ipToGeo // ------------------------------------------------------------- echo "

ipToGeo method

"; echo "Check ipToGeo function, data from your IP address ".($mb->getIP()).":
".print_r($mb->ipToGeo(),true)."
"; echo "
"; // test copyFile // ------------------------------------------------------------- echo "

copyFile method

"; echo "Check copyFile function, copy my avatar from codecanyon on my server:
"; unlink("avatar.jpg"); if($mb->copyFile("http://1.s3.envato.com/files/68503809/pons-80x80.jpeg","avatar.jpg")) { echo "ok (local file on barattalo.it)"; } else { echo "fails"; } echo "
"; // test checkMp3 // ------------------------------------------------------------- $temp = $mb->checkMp3("http://www.artintent.it/Kalimba.mp3"); echo "

checkMp3 method

"; echo "Check if url http://www.artintent.it/Kalimba.mp3 is an mp3:
".($temp ? "true" : "false")."
"; $temp = $mb->checkMp3("https://www.barattalo.it/file_example_MP3_700KB.mp3"); echo "Check if url https://www.barattalo.it/file_example_MP3_700KB.mp3 is an mp3:
".($temp ? "true" : "false")."
"; echo "
"; // test doShortUrl and doShortURLDecode // ------------------------------------------------------------- echo "

doShortUrl method

"; echo "Try to make a short url from http://www.dailybest.it/2013/03/05/vita-programmatore-gif-animate/
"; $a = $mb->doShortUrl("http://www.dailybest.it/2013/03/05/vita-programmatore-gif-animate/"); echo "Short:
".$a."

"; echo "

doShortURLDecode method

"; echo "Short url decode from $a:
".$mb->doShortURLDecode($a)."
"; echo "
"; // test doSpelling // ------------------------------------------------------------- echo "

doSpelling method

"; echo "Make spell check for word wikipezia:
";
echo $mb->doSpelling("wikipezia")."
"; echo "
"; // test getLatLong // ------------------------------------------------------------- echo "

getLatLong method

"; echo "Retrieve coordinates for address: piazza cadorna, milano, italy
"; echo "
".print_r($mb->getLatLong("piazza cadorna, milano, italy",""),true)."
"; echo "Please use interactive demo here"; echo "
"; // test getLatLongBis // ------------------------------------------------------------- echo "

getLatLongBis method

"; echo "Retrieve coordinates for address: piazza cadorna, milano, italy
"; echo "
".print_r($mb->getLatLongBis("piazza cadorna, milano, italy",""),true)."
"; echo "Please use interactive demo here"; echo "
"; // test getUrlInfo // ------------------------------------------------------------- echo "

getUrlInfo method

"; $url = "https://www.dailybest.it/ambiente/come-adottare-una-mucca-a-distanza-e-vivere-felici/"; echo "Get info on ".$url."
"; echo "
".print_r($mb->getUrlInfo($url,2,10),true)."
"; echo "
"; // test getVideoUrlInfo // ------------------------------------------------------------- echo "

getVideoUrlInfo method

"; echo "Get info on Vimeo video https://vimeo.com/75976293
"; echo "
".print_r($mb->getVideoUrlInfo("https://vimeo.com/75976293"),true)."
"; echo "Get info on Youtube video https://www.youtube.com/watch?v=KUVlrdfKowk
"; echo "
".print_r($mb->getVideoUrlInfo("https://www.youtube.com/watch?v=KUVlrdfKowk"),true)."
"; echo "
"; // test getVimeoInfo // ------------------------------------------------------------- echo "

getVimeoInfo method

"; echo "Get extended info on Vimeo video ID 75976293
"; echo "
".print_r($mb->getVimeoInfo("75976293"),true)."
"; echo "
"; // test googleSuggestKeywords // ------------------------------------------------------------- echo "

googleSuggestKeywords method

"; echo "Get keyword suggesta from Google with berlusconi
"; echo "
".print_r($mb->googleSuggestKeywords("berlusconi"),true)."
"; echo "
"; // test readFacebookCounters // ------------------------------------------------------------- echo "

readFacebookCounters method

"; $url = "https://www.dailybest.it/society/vita-programmatore-gif-animate/"; echo "Get Facebook counters for ".$url."
"; echo "
".print_r($mb->readFacebookCounters($url),true)."
"; echo "(Should be greater than 1)"; echo "
"; // test readFacebookCounter // ------------------------------------------------------------- echo "

readTwitterCounter method

"; echo "Get number of times the url ".$url." has been twitted
"; echo "
".print_r($mb->readTwitterCounter($url),true)."
"; echo "
"; // test wikiDefinition // ------------------------------------------------------------- echo "

wikiDefinition method

"; echo "Get Wikipedia definition for Barack Obama
"; echo "
".print_r($mb->wikiDefinition("Barack Obama"),true)."
"; echo "
"; // test url_exists // ------------------------------------------------------------- echo "

url_exists method

"; $u = "https://en.wikipedia.org/wiki/Barack_Obama"; echo "Check if a remote url exists for ".$u."
"; echo "
".($mb->url_exists($u) ? "true" : "false")."
"; echo "Check ".$u."2 (wrong)
"; echo "
".($mb->url_exists($u."2") ? "true" : "false")."
"; echo "
"; // test doSMTPValidation // ------------------------------------------------------------- echo "

doSMTPValidation method

"; echo "Check if an email exists pons@rockit.it
"; echo "
".print_r($mb->doSMTPValidation("pons@rockit.it","info@barattalo.it",true),true)."
"; echo "
"; ?>