Hel­lo and wel­come to our live cov­er­age of the 2013 State of the Union Address! Patrick and I invite you to join us as we watch the Pres­i­den­t’s speech and react to it in real time with our com­men­tary and obser­va­tions. The White House has sent along the full text of Pres­i­dent Oba­ma’s remarks as pre­pared for deliv­ery, and it looks to us like a real­ly strong speech. We are tuned into C‑SPAN and await­ing the arrival of the Pres­i­dent, his Cab­i­net, and the jus­tices of the Supreme Court.

[php]
$url =“https://www.nwprogressive.org/debates/liveblogging-the-2013-state-of-the-union-address-from-the-great-pacific-northwest/”;

//unique text to deter­mine start goes here
$start = “Let us begin.”;

//insert end text here
$end = “More updates forthcoming…”;

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url );
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($ch) or die (“Sor­ry, could­n’t load live SOTU cov­er­age. Please refresh the page.”);

curl_close ($ch);

$start­po­si­tion = strpos($result,$start);

if($startposition > 0){

$end­po­si­tion = strpos($result,$end, $start­po­si­tion);

//add enough chars to include the tag

$end­po­si­tion += strlen($end);
$length = $endposition-$startposition;
$result = substr($result,$startposition,$length);
echo $result;

}else

echo “Sor­ry, there’s some­thing wrong here! Please refresh the page or try again later.”;
[/php]

About the author

Andrew Villeneuve is the founder and executive director of the Northwest Progressive Institute, as well as the founder of NPI's sibling, the Northwest Progressive Foundation. He has worked to advance progressive causes for over two decades as a strategist, speaker, author, and organizer. Andrew is also a cybersecurity expert, a veteran facilitator, a delegate to the Washington State Democratic Central Committee, and a member of the Climate Reality Leadership Corps.

Adjacent posts