944,150 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2173
  • PHP RSS
Mar 18th, 2005
0

trying to create an online contents menu

Expand Post »
I am new to PHP and have to create a program that whilst running allows usert to browse a site and add the current page to a linear text, whilst at the same time creating a contents menu linked to bookmarks of each of the pages just added to the linear text.

I was unable to find what I was looking for by searching (possibly inexperience of using the site)

Anyway I was wondering if anyone has any chunks of code that could be of use for any of the above problem.

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
goingbackwards is offline Offline
2 posts
since Mar 2005
Mar 24th, 2005
0

Re: trying to create an online contents menu

what is linear text? can you give an example/illustration?
Reputation Points: 15
Solved Threads: 0
Junior Poster in Training
barnamos is offline Offline
50 posts
since Mar 2005
Mar 24th, 2005
0

Re: trying to create an online contents menu

one continuous file. storing the contents of several web pages in one file.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
goingbackwards is offline Offline
2 posts
since Mar 2005
Mar 24th, 2005
0

Re: trying to create an online contents menu

Quote originally posted by goingbackwards ...
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!
Reputation Points: 15
Solved Threads: 0
Junior Poster in Training
barnamos is offline Offline
50 posts
since Mar 2005
Mar 24th, 2005
0

Re: trying to create an online contents menu

Do you want to track this info with software on a web server or with software on the user's computer? If on a web server then php should be able to (as long as pages browsed are on that particular webserver). If on the user's computer then you need to use a different language (like c++ or maybe visual basic).
Reputation Points: 17
Solved Threads: 14
Posting Whiz
DanceInstructor is offline Offline
355 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: RSS Feeds Question
Next Thread in PHP Forum Timeline: Am not able to get a radio button selection to display in output





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC