﻿Design:html4.01 transitional,css level 3
--------------------------------------------

PHP: Date,Array, fopen and fread functions

------------------------------------------

<?php
$textfile = "tekst.txt";
$handle = fopen($textfile, 'r');
$textinfo = fread($handle, 1024);
fclose($handle);
print $textinfo;
?>

The first variable $textfile defines the very file. Second,$handle, opens(fopen) the file in read-only mode.The third,$textinfo, reads the content to 1024 bytes via fread.

www.numiverzum.com