<?
$filename = "arraytext.txt";
$f = fopen($filename, 'r');
echo fgets($f);
fclose($f);
?>
To run it every 12 hours, add this line to your "/etc/crontab" file (for example):
00 11,23 * * * root php path-to-your-script/name-of-your-script.php
UPDATE: After your comment I think I better understood your question (sorry).
Forget about "crontab" stuff...
Just do:
<?
$filename = "arraytext.txt";
$arr = file($filename);
foreach ($arr as $line) {
print $line . "<br />";
sleep(60 * 60 * 12); // (60 * 60) * 12 seconds sums up to 12 hours
}
?>
Be warned, though, that php run in "web" mode (as opposed to "cli" mode) has strict execution time limits (see http://php.net/manual/en/function.set-time-limit.php).
I suppose you are using this on the web interface since in your question you use the html tag <br />
...
Note: sorry, but why do you want to write one line each 12 hours??? :-)