View szenteles.eleklaszlo.hu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="hu"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Elek László SJ papszentelése</title> | |
<meta name="Description" content="2018. augusztus 25-én délután háromkor Ternyák Csaba érsek atya pappá szentel Miskolcon." /> | |
<meta name="author" content="Elek László SJ jezsuita szerzetes"> |
View gist:34abad30800ba69ce24b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$json = file_get_contents('http://szentiras.hu/api/idezet/1Kor13,10-13'); | |
$array = json_decode($json); | |
print_r($array); | |
?> |
View gist:84819edbf4dea7a67e2e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$date = "20".sprintf('%02d',rand(0,22))."-".sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29)); | |
$start = sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29)); | |
$end = sprintf('%02d',rand(1,12))."-".sprintf('%02d',rand(1,29)); | |
echo "Is ".$date." between ".$start." and ".$end."? "; | |
if("2000".$start < "2000".$end) { | |
$year = date('Y',strtotime($date)); |