01.
if
(
$objFopen
)
02.
{
03.
header(
'Content-type: text/plain'
);
04.
header(
'Content-Disposition: attachment; filename="'
.
$linkk
.
'".txt; '
);
05.
06.
$strFileName
=
"TXT_File/$linkk.txt"
;
07.
$objFopen
=
fopen
(
$strFileName
,
'r'
);
08.
if
(
$objFopen
) {
09.
while
(!
feof
(
$objFopen
)) {
10.
$file
=
fgets
(
$objFopen
, 4096);
11.
echo
$file
;
12.
}
13.
}