trying to create an online contents menu

Reply

Join Date: Mar 2005
Posts: 2
Reputation: goingbackwards is an unknown quantity at this point 
Solved Threads: 0
goingbackwards goingbackwards is offline Offline
Newbie Poster

trying to create an online contents menu

 
0
  #1
Mar 18th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 50
Reputation: barnamos is an unknown quantity at this point 
Solved Threads: 0
barnamos's Avatar
barnamos barnamos is offline Offline
Junior Poster in Training

Re: trying to create an online contents menu

 
0
  #2
Mar 24th, 2005
what is linear text? can you give an example/illustration?
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 2
Reputation: goingbackwards is an unknown quantity at this point 
Solved Threads: 0
goingbackwards goingbackwards is offline Offline
Newbie Poster

Re: trying to create an online contents menu

 
0
  #3
Mar 24th, 2005
one continuous file. storing the contents of several web pages in one file.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 50
Reputation: barnamos is an unknown quantity at this point 
Solved Threads: 0
barnamos's Avatar
barnamos barnamos is offline Offline
Junior Poster in Training

Re: trying to create an online contents menu

 
0
  #4
Mar 24th, 2005
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!
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 355
Reputation: DanceInstructor is an unknown quantity at this point 
Solved Threads: 14
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: trying to create an online contents menu

 
0
  #5
Mar 24th, 2005
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).
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC