Page 1 of 1

Multiple pages from a single php file

Posted: Fri Oct 13, 2006 6:16 pm
by amir
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!

Posted: Fri Oct 13, 2006 6:19 pm
by Ollie Saunders
I suppose you could use...

Code: Select all

sleep() and flush()
...but you would really be much better using some JS. Because PHP has a max_execution_time limitation.

Posted: Fri Oct 13, 2006 7:21 pm
by feyd