|
Le News
|
|
$pathr = fopen("../public/news.txt","r");
if (! $pathr)
{
echo "Non trovato file news";
return;
}
$number = 0;
while (!feof($pathr))
{
$pathroot = fgets($pathr,4096);
$pathr_info = explode("-", $pathroot);
$titolo = $pathr_info[0];
$news = $pathr_info[1];
$number = $number + 1;
echo "$titolo | - $news | " ;
}
?>
|
|
|
| |