
September 5th, 2004
04:44 AM
Neverside Newbie
Status: Offline!
can i highlight new lines of an updated text file?
i have not found a tutorial that would explain how to do this, so if someone could point me in the right direction i'd highly appreciate it.
what i wanna do is somehow make a list of my mp3s in a text file and display them on a web page. what seems tricky to me and i can't figure out is if i make a new list (completely new updated text file), i would like to replace it with the old one while simultaneously formatting the new lines differently. ie, highlighting or bolding the new files.
it seems like it should be simple for someone familiar with php, but i don't know how to do it and can't find a tutorial, if anyone knows can they link me to one?
___________________
http://www.ewker.com

September 5th, 2004
06:16 AM
Web Developer & Geek
Status: Offline!
If you used a database you could set a date function so that all posts (or latest added) are highlighted etc. But for this you would have to use a DB, not sure how you would do it otherwise.
___________________


September 5th, 2004
06:54 AM
thinking of something witty to put here
Status: Offline!
I really don't think this is a script request.
Basically, every time the file is viewed, you store it in a database if it hasn't been changed since you added it to the database last. If it has been changed, use a difference library to compare the last saved one and the current one.

September 5th, 2004
07:36 AM
Neversidian
Status: Offline!
just file the file and the old file and compare the two arrays.
___________________
Neverside Development Director
PHP Snippets
BigToach.com - IT WORKS, TOACHY!