01.
<html>
02.
<head>
03.
<title>ThaiCreate.Com PHP & Readfile</title>
04.
</head>
05.
<body>
06.
<?
07.
$strFileName
=
"thaicreate.txt"
;
08.
$objFopen
=
fopen
(
$strFileName
,
'r'
);
09.
if
(
$objFopen
) {
10.
while
(!
feof
(
$objFopen
)) {
11.
$file
=
fgets
(
$objFopen
, 4096);
12.
$arr
[] =
$file
;
13.
}
14.
fclose(
$objFopen
);
15.
}
16.
?>
17.
</body>
18.
</html>