Re: "forward" and "previous" question.

by "Rossi Designs" <webmaster(at)rossidesigns.net>

 Date:  Tue, 18 Apr 2000 12:19:16 -0400
 To:  "Mike Taylor" <lonewolf(at)one.net>,
<hwg-techniques(at)hwg.org>
 Cc:  <hwg-programming(at)hwg.org>
 References:  one
  todo: View Thread, Original
Here's the basic code to write a text file to the screen, one line at a
time. If you need more help let me know.

<?php
if ($fp = fopen("/path/to/file.txt","r")) {
while (!feof($fp)) {
$line = fgets($fp,255);
echo $line;
}
fclose($fp);
}
?>

Rossi Designs
PO Box 1084
Holly Hill, FL 32125-1084
Phone : (904) 226-8979
URL : http://rossidesigns.net
----- Original Message -----
From: Mike Taylor <lonewolf(at)one.net>
To: <hwg-techniques(at)hwg.org>
Cc: <hwg-programming(at)hwg.org>
Sent: Tuesday, April 18, 2000 9:26 AM
Subject: "forward" and "previous" question.


| I have a web site where the ISP allows/enables PHP3 for our personal
| web space.  This may play a role in my question:
|
| I want to have a single page that pulls data into it from a plain text
| file or perhaps a database.  I do this all the time using ASP and SQL, but
| alas I don't have those capabilities here.  When I hit the "forward" or
| "previous" button in my navigation on this page, I want it to pull the
| appropriate data from this text file so that the user believes they are
| seeing a brand new page.
|
| Is there anyone out there who knows PHP3 enough to point me in the right
| direction on how to accomplish this?  Or perhaps there is a way to do this
| without PHP3 or some server-side code that I'm overlooking?  Thanks.
|
| Mike Taylor
|
|
|
|

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA