As many of you know I started a health and fitness journey on April the 16th 2013. This video is a progress update of the last 18 months of work!
Being fully transparent I am a system admin by trade so my code is not the greatest. That being said, I figured I would release a little bit of PHP code I wrote for a tool I have created as it is useful for pulling GeoIP data and displaying it in HTML. It uses PHP Curl, gethostbyname, JSON decode, and the Telize.com JSON GeoIP webservice.
// PHP GeoIP Lookup Script - 11/15/2014 by Dustin Larmeir (firstname.lastname@example.org)
// Form Input
$INPUT = $_POST['INPUT'];
// Grabs the domain name via the input form and converts it to a IP address
$hostname = $_POST['INPUT'];
$ipaddress = gethostbyname($hostname);
// Grabs IP address from form (basic method)
$url = "http://www.telize.com/geoip/".$ipaddress;
$ch = curl_init();
// Disable SSL verification
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// Will return the response, if false it print the response
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Set the url
// get the results and json_decode the answer
$geoip_data = (json_decode($geoip_json, true));
// Echo output from JSON decoding and PHP arrays
echo "IP Address: "; echo($geoip_data["ip"]);
echo "Organization: "; echo($geoip_data["isp"]);
echo "City: "; echo($geoip_data[city]);
echo "State: "; echo($geoip_data[region]);
echo "Country: "; echo($geoip_data[country]);
echo "Time Zone: "; echo($geoip_data[timezone]);
This is probably the most manly gym I have ever seen! This video shows you can become fit regardless of what facilities you have available to you.
On a parting note there’s a man doing a leg press machine on this video who is about to crush his knees. Never, ever, ever, lock out your knees on a leg press!
This song is a great classic and the rhythm is super soothing to the ears. I love 50’s, 60’s, and 70’s music!