| | |
trying to create an online contents menu
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2005
Posts: 2
Reputation:
Solved Threads: 0
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
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
•
•
•
•
Originally Posted by goingbackwards
one continuous file. storing the contents of several web pages in one file.
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!
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).
![]() |
Similar Threads
- Please Review site to create CV's online using flash technology (Website Reviews)
- Simple drop down menu (HTML and CSS)
- Online Dating (ASP.NET)
- What is the best language to use to use to create a menu for mobile phone???? (Computer Science)
- For some reason program installations cannot create new start menu shortcuts... (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: RSS Feeds Question
- Next Thread: Am not able to get a radio button selection to display in output
| Thread Tools | Search this Thread |
ajax apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion regex remote script search server session sessions sms smtp soap source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; xml youtube





