Rotating Content
Posted: Tue Nov 23, 2004 6:21 am
I have started learning php and would like to create some dynamic rotating text on the main page. An example of this is shown at http://www.webmaster-toolkit.com where a different site is shown each time in "Site of the Moment".
I basically want to know how to do a really simple version of this as i take it this version is done using some form of datebase.
Quite simply i want to have a directory containing a number of different files (for example text files) each text file contains the site description and the link to the site. Each time the index page is viewed and/or refreashed a different/random text file from the directory in question is selected.
The content of which is then shown in a specified area on the index page.
Any help for a newbie???
I basically want to know how to do a really simple version of this as i take it this version is done using some form of datebase.
Quite simply i want to have a directory containing a number of different files (for example text files) each text file contains the site description and the link to the site. Each time the index page is viewed and/or refreashed a different/random text file from the directory in question is selected.
The content of which is then shown in a specified area on the index page.
Any help for a newbie???