Помогите исправить ошибку
Всем привет.
Помогите исправить код, выдаёт сообщение на странице =0; $i—) { echo $array[$i]; } ?>, сам код
$dest='zapros.php';
$pfile=fopen($dest,'r');
if (!$pfile) die("fail attempt to open file");
$count=0;
while (!feof($pfile)) {
$tempstr=fgets($pfile);
$array[$count]=$tempstr."";
$count++;
}
$arr_count = count($array);
for ($i=$arr_count; $i>=0; $i--) {
echo $array[$i];
}
?>