Hello and welcome to our live coverage of the 2013 State of the Union Address! Patrick and I invite you to join us as we watch the President’s speech and react to it in real time with our commentary and observations. The White House has sent along the full text of President Obama’s remarks as prepared for delivery, and it looks to us like a really strong speech. We are tuned into C‑SPAN and awaiting the arrival of the President, his Cabinet, and the justices 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 determine 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 (“Sorry, couldn’t load live SOTU coverage. Please refresh the page.”);
curl_close ($ch);
$startposition = strpos($result,$start);
if($startposition > 0){
$endposition = strpos($result,$end, $startposition);
//add enough chars to include the tag
$endposition += strlen($end);
$length = $endposition-$startposition;
$result = substr($result,$startposition,$length);
echo $result;
}else
echo “Sorry, there’s something wrong here! Please refresh the page or try again later.”;
[/php]