I'm trying to do a code for daily birthdays, those birthdays are on a .txt with a Y-m-d date and the name of the person, but I don't know how to compare the .txt dates with the current date and print the person's name.
That's what I started
$current = date("Y-m-d");
$content = fopen("content.txt", "r");
while (!feof($content)){
$linha = fgets($content);
echo $linha. "<br>";
}
That's the .txt content:
2017-12-13 ; teste
2017-12-13 ; teste
2017-12-15 ; teste
2017-12-15 ; teste