Jaiem
Thu 19th Sep '02, 5:07pm
I have a simple PERL script that is a random banner rotator and display. It is called via the SSI include command.
Nothing fance, just opens a file that lists banner URL's and the URL's to go to when clicked, then selects one at random and includes it along with the appropriate HTML code in the main (calling) HTML program.
How can I make a PHP version of this simple script? IOW, I need some PHP code that will open a file of banners and links (in the format BANNER URL|LINK URL), select a record at random and display the banner with link in the mainline program.
Thanks in advance!
Nothing fance, just opens a file that lists banner URL's and the URL's to go to when clicked, then selects one at random and includes it along with the appropriate HTML code in the main (calling) HTML program.
How can I make a PHP version of this simple script? IOW, I need some PHP code that will open a file of banners and links (in the format BANNER URL|LINK URL), select a record at random and display the banner with link in the mainline program.
Thanks in advance!