what is linear text? can you give an example/illustration?
barnamos
Junior Poster in Training
50 posts since Mar 2005
Reputation Points: 15
Solved Threads: 0
one continuous file. storing the contents of several web pages in one file.
Yikes, sure seems suited to a database application....
But if you want to stay with text files, you could write files to the server, one for content and one for the bookmarks. I'm not sure how you track the user, generally they would have to login and that would mean you'd have a database handy! I suppose you could grab the sessionid and use that as a temp file name. Then use fopen with the a flag to add content to the end of the file.
fopen("/home/mydir/" . $file_name . ".txt", "a");
you'd want to stick some "marker" in there to delimit the entries, probably something unique that you could explode the file into an array with.
You might want to whack the file at the end of the session to keep your drive from filling up!
HTH!
barnamos
Junior Poster in Training
50 posts since Mar 2005
Reputation Points: 15
Solved Threads: 0