I'm trying to develop a system for information distribution over plasma screens in a school.
The news items are stored in a flat text file (which can be updated easyly) and I have written a php script to read the file and format it.
When I have a 'page full' of information I need to be able to dwell (say 10 seconds) and then read the next bit of the file into a 'clean' page, go on doing this to eof and then loop.
I seem to have a mental block at this stage. Can I clear the page? should I jump to a new page (which will be empty) -- if so how can I transfer the file postion pointer to the next page? Am I going about this completely the wrong way!!
Any suggestions would be appreciated!
Multiple pages from a single php file
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
I suppose you could use......but you would really be much better using some JS. Because PHP has a max_execution_time limitation.
Code: Select all
sleep() and flush()- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
http://www.phpclasses.org/browse/package/1704.html may be of interest.