Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

73 users online



can i highlight new lines of an updated text file?

can i highlight new lines of an updated text file?

Currently viewing this thread: 1 (0 members and 1 guests)


ewker

ewker

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

Dachande663

Dachande663

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.

___________________

http://www.hybridlogic.co.uk/sig.jpg
http://www.hybridlogic.co.uk/winamp.jpg

Rad

Rad

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.

BigToach

BigToach

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!

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.017 seconds.