Hello all.. I was wondering if there was a way to load different paragraphs say 5 or 10 to different pages using a text document. I am pretty new to php and have read alot, but seem to be missing something. I can get the whole doc to load of course, but cant seem to get it to stop where I want. I am new and have been reading, but I missing something..
thanks in advance!
here is the code I got from the net since I am new at this:
the code
$textfile= "../doc/info.txt";
$handle = fopen($textfile, "r");
$contents = fread($handle, filesize($textfile));
fclose($handle);
$content = explode("&noah=", $contents);
print($content[1]);
example data...
just plain text document with multiple paragraphs
for example:
case above:
&noah= blah blah approx 400 characters.
next paragraph
&sarah= blah blah approx 300 characters.
and about 10 paragraphs below
example output:
full paragraph displayed on data specific web page