if have file ex (news.txt)
and i need php to read my words in this file just one lind by day
every day php read one line only>>
i write this code but it not work >>>any help
$wordfile = "words.txt";
$open = fopen($wordfile, "r");
$read = fread($open, filesize($wordfile));
fclose($wordfile);
$array = explode("\n",$read);
$date = date("z");
while ($date++){
echo $array;
}