Logo
Print



<?php
$file= 'images/json/iws.txt';
$mod_date=date("F d Y H:i:s.", filemtime($file));
// echo"$mod_date";
$expire= date("Y-m-d H:i:s", strtotime($mod_date . " +8 hours"));
$today = date("Y-m-d H:i:s");
if (strtotime($today) < strtotime($expire)) {
$file_handle = fopen("images/json/iws.txt", "rb");
while (!feof($file_handle) ) {
$line_of_text = fgets($file_handle);
$parts = explode('\n', $line_of_text);
echo" <p align='justify'>$parts[0] ";
}
fclose($file_handle);
?>
<br/><br/><a target="popup" onclick="window.open('/http://pubfiles.pagasa.dost.gov.ph/tamss/weather/iws.pdf','name','width=1000,height=1000')"><img align='center' height= '20px' width='20px' src='https://pubfiles.pagasa.dost.gov.ph/tamss/weathericons/pdf.jpg'> International Warning for in PDF file </a>

<?php

}
else{
echo"<center>As of today, there is no Tropical Cyclone within Philippine Area of Responsibility (PAR).</center>";
}
?>