Štandard

‚;
$end_tag=‘‚;

$temp=trim(join(“,file($url)));
$zaciatok=strpos($temp, $start_tag)+strlen($start_tag);
$koniec=strpos($temp, $end_tag);
$temp=trim(substr($temp,$zaciatok,(strlen($temp)-(strlen($temp)-$koniec))-($zaciatok)));
$nums = array ( ‚>…‚, ‚

‚, ‚

‚, ‚

‚, ‚

‚, ‚)‚, ‚_year“>00‘, ‚_year“>0‘, ‚>UdalostiNarodeniaÚmrtia

‚, ‚

‚, ‚zobraziť zajtrajšie výročia‘, ‚BCE‚, ‚>0‘);
$images = array ( ‚>‚, ‚

‚, ‚

‚, ‚

‚, ‚

‚, ‚. výročie)‚, ‚_year“>‘, ‚_year“>‘, ‚>[wpfa5r icon=“fa-calendar-alt“][wpfa5s icon=“fa-birthday-cake“][wpfa5s icon=“fa-monument“]‚, ‚>‘ );
$final = str_replace ($nums, $images, $temp);

echo $final;

$subor = fopen(‚today-and-tomorrow.inc‘, „w+“);
fwrite($subor, $final);
fclose($subor);
*/

$url=’https://io.24hodin.sk/msts/‘;

$start_tag=’**Standard**‘;
$end_tag=‘——‚;

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
‚User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0‘
]);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$data = curl_exec($ch);

$temp=trim($data);
$zaciatok=strpos($temp, $start_tag)+strlen($start_tag);
$koniec=strpos($temp, $end_tag);
$temp=trim(substr($temp,$zaciatok,(strlen($temp)-(strlen($temp)-$koniec))-($zaciatok)));
$nums = array ( ‚|‘, “, “);
$images = array ( ‚/‘, “, “ );
$final = str_replace ($nums, $images, $temp);

echo $final;
?>