HomeAviationTravelPhotosMinistryResourcesBlogFunFilesXtraFilesResumeEmailTemp
Andy Borgmann's Blog
Where The Producer Gets the Mic
A Big Week: WOWO - Fort Wayne, World Series & A Faucet
Continual Affirmation of Manhood: I Installed My New Moen Kitchen FaucetIt was a big week this week. First, Justin broke my faucet in the kitchen so I had to install a new one. I know you are thinking to yourself, that isn't big. It is for me as it continues to reaffirm that I am a man and can do handy things around my house.

After that I fixed my cable box in one room and then took a nap while trying to watch the Cubs game. I was awoken by a phone call from Justin. All I heard was, "did you see the e-mail? 235, man. 235."1

What To Do When Know RSS? - Build A PHP Tracking Script Using fopenJustin and I have been tracking World Series tickets with the Tampa Bay Rays for a couple of weeks now. The problem was, StubHub does not have RSS capability so we would have had to check the site manually all the time. Not a good option. But I figured out a way to do a script that would capture the webpage every hour and send us the results via email. And sure enough, today, World Series tickets were put on the page almost $150 below everything else we had seen. We snapped them upped immediately.

Now everybody root for the Cubs and the Tampa Bay Rays.

Andy Borgmann Returns to Fort Wanyne, IN on WOWO 1190 AM with the Allen Hunt ShowThen, if the week wasn't good enough, this morning Allen was interviewed on WOWO in Fort Wayne, IN by Charley Butcher as we are going to be going live in my hometown starting this Saturday. The Allen Hunt Show - and all its Homestead bashing due to my inability to spell - can be heard Saturdays from 9p-12m on WOWO 1190 AM. So tell everyone you know to tune in, listen, and call - especially this Saturday as we get preempted on our flagship, News/Talk 750 WSB, due to UGA football.

Not a bad couple of days if you ask me.



P.S. For those wondering how to create the Email when RSS isn't available I have included the PHP code below.

<php

// Retrieve the Date
$plushour = time() + (60 * 60);
$date = date("g A - D M j", $plushour);

//URL of File
$file = "http://www.stubhub.com/tampa-bay-rays-playoff-tickets/rays-vs-tbd-10-23-2008-587821/";

// Retreive HTML Document
$html = implode('', file($file));

$box_end = explode("</tbody>", $html);

// Create An Array for Each <tbody> Tag
$box_beg = explode("<tbody id=\"ttb\">", $box_end[1]);
for($i = 1; $i < count($box_beg); $i++){

$box_body = "<table cellpadding=\"2\">$box_beg[1]</table>";

//Send Email to Andy & Justin
$to = "Andy Borgmann <andy@2timothy42.org>";
$from = "Andy Borgmann (Webmaster) <webmaster@2timothy42.org>";

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from" . "\r\n";
$headers .= "Cc: Friends Name <friends.email@gmail.com>" . "\r\n";

$subject = "World Series Tickets - $date";
$body = "<html><head><title>World Series Tickets - $date</title></head>
<body style=\"font-family: Arial; font-size: 12px;\">
<div style=\"text-align: center; font-size: 24px; font-weight: bold; \">What do you think? • Anything good yet?</div>
<br />
<a href=\"$file\">$file</a><br />
<br />
<b>This is for World Series Tickets: Thursday, October 23, 2008 at Tampa Bay Rays - Home Game 2</b><br />
<br />
$box_body
</body></html>";

mail($to, $subject, $body, $headers);

}

?>


Then you just setup a Cron task to execute the script every hour

0 * * * * nice -n 15 php /dir/to/script/baseball-tix.php >/dev/null 2>&1

What's Andy Up To?

Description
Andy's blog aims to be like a Scrubs episode, mixed with a Chuck Klosterman column, centered around the topic of faith. It is open, honest, raw, and a little embarrassing. It is a place to discuss religion, politics, ministry, pop culture, and well, just life - especially focused on the time of life we call our 20s!

Andy is the Executive Producer of The Allen Hunt Show; a progressive (in the literal sense), talk radio show based in Atlanta, GA aimed at bringing faith back into the public discussion. Andy enjoys travel, aviation, web design, politics, friends, and faith. He holds that the secret to a full life is loving God and loving people - which he fails at constantly.

Andy grew up in Fort Wayne, IN. He now lives in Alpharetta, GA.

More information about Andy can be found at www.2timothy42.org or Andy's Facebook.

P.S. As has been mentioned on air, Andy is horrible at grammar and spelling. Please excuse any mistakes, trust me, he's sorry.



Email Subscribe

Powered by FeedBurner


Calendar
<<    <    Sep 2008    >    >>
Sun Mon Tue Wed Thu Fri Sat
 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2008-09-30 00:00:00
2008-09-30 23:59:59
30