Get News - Trinidad Express

"; //Cache files $ftime = __DIR__ . "/../../cache/normal/te_news_time.txt"; $fcache = __DIR__ . "/../../cache/normal/te_news_cache.txt"; //echo $ftime . "
"; //echo $fcache . "
"; $cachelimit = 60 * 60; //60 minutes in seconds $time_now = time(); $time_last = trim(file_get_contents($ftime)); if($time_last + $cachelimit < $time_now) { $data = file_get_contents("http://www.trinidadexpress.com/news"); file_put_contents($ftime, $time_now); file_put_contents($fcache, $data); $doc = new DOMDocument(); $doc->strictErrorChecking = FALSE; $doc->loadHTML($data); $divs = $doc->getElementsByTagName('div'); $newdata = ""; foreach($divs as $div) { if($div->getAttribute('class') == "col-md-8 row") { $children = $div->childNodes; foreach ($children as $child) { if($child->tagName == 'h3') { $link = $child->childNodes->item(0)->getAttribute('href'); $title = $child->childNodes->item(0)->nodeValue; $newdata = $newdata ." data-share-imageurl="">
India's top court: Instant divorce among Muslims unlawful
NEW DELHI (AP) — India's Supreme Court on Tuesday struck down the Muslim practice that allows men to instantly divorce their wives as unconstitutional.

Foetus in the Beetham dump
By Alexander Bruzual

Wife gang raped, husband beaten by intruders
By Susan Mohammed

Infant killed on Valencia stretch
By Susan Mohammed

No bail for maintenance workers
By Nikita Braxton-Benjamin

Tout vs taxi driver over passenger
By Nikita Braxton-Benjamin

Missing in the mountain - Day 4
By Sandhya Santoo

CROOKED DEAL
Prime Minister Dr Keith Rowley yesterday agreed that something crooked may have gone down with the procurement process for the Cabo Star and the Ocean Flower II vessels.

Trinidadian editor fired *
Trinidadian editor-in-chief Davan Maharaj is among several top editors at the Los Angeles Times who were terminated yesterday.

PM has no empathy for Tobago *
OPPOSITION Leader Kamla Persad-Bissessar has again accused Prime Minister Dr Keith Rowley of incompetence, saying yesterday he has “admitted” to having “no idea” what his Cabinet ministers are doing.

Excited sun gazers flock to Savannah *
Sporting purple paperweight shades, excited people gathered at the picturesque Queen’s Park Savannah in Port of Spain yesterday to view the solar eclipse.

...Young and old come out in South *
HUNDREDS of people yesterday flocked to San Fernando Hill to catch a glimpse of the once in a lifetime partial solar eclipse.