pagination of .txt files in php
Posted: Wed Nov 01, 2006 2:34 pm
feyd | Please use
i need a php pagination please, as i have about 7 .txt files to display on different pages.
any ideas on how to get this sorted?
many thanks for having a look.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi, i would like to know how to get the a php pagination for txt files as shown belowCode: Select all
<?php
$filename="mycontent.txt";
$fp=fopen ($filename, "r") or die ("Couldn't open $filename");
while (! feof ($fp))
{
$line = fgets ($fp, 1024);
print "$line<br>";
}
?>any ideas on how to get this sorted?
many thanks for having a look.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]