Click to See Complete Forum and Search --> : News scripts - PHP preferred


kareem
05-11-2003, 02:06 AM
Hi..
I am looking for a scripts the i can add to my homepage ... this script should read from txt file. Here is the story:
I added an "add link" feature on my website ... these links are added by the site visitors to a text file and they are shown on a seprate page.
The script i am looking for is something that reads what is on the file "txt file" and show it as a moving news tape on the top of the page .... please help me out
Thanks
kareem

AdamGundry
05-11-2003, 12:46 PM
You can just do a simple PHP include to get the text content into the page:

<?php include "news.txt" ?>

The moving news ticker needs to be controlled by Javascript. You could start looking for a script here:

http://www.dynamicdrive.com/dynamicindex2/index.html

Adam

P.S. Be aware of potential accessibility issues when using this - make sure your page works without Javascript.

P.P.S. You also need to consider security issues - you probably need to strip_tags() the content the user posts, or they could post text including PHP code.

kareem
05-12-2003, 12:50 AM
thanx. the 1st script did the job ...