View file scripts/news.php
<?php $data_news = "data/data_news.dat"; $data_n = fopen("$data_news","r+"); $dat = fread($data_n,filesize($data_news)); list($name, $news) = explode(":::", $dat); echo"$name</br>$news"; fclose($data_n); ?>
<?php $data_news = "data/data_news.dat"; $data_n = fopen("$data_news","r+"); $dat = fread($data_n,filesize($data_news)); list($name, $news) = explode(":::", $dat); echo"$name</br>$news"; fclose($data_n); ?>