A simple PHP-script for random text
I was thinking about using it to show AdBrite SmartZone ads.
In one SmartZone is max. 25 ads.
Using this script I can show even more.
And yes, I could use AdRotate if I'm using WP.
But, here it is if you need it.
< ?
//set the urls
$urls = array(
'- Insert text/link/code here -', // Insert your code/text between the ' '
'- Insert text/link/code here -',
'- Insert text/link/code here -',
'- Insert text/link/code here -'); // Last line, use no comment at the end (,)
srand(time());
//set the number in (rand()%3); for however many links there are
$random = (rand()%4);
echo ("$urls[$random]");
?> -
wasabi20 -
Thanks
{{ DiscussionBoard.errors[5023335].message }} -
-
drewmcntyre -
Thanks
{{ DiscussionBoard.errors[5024583].message }} -
-
CyberSEO -
Thanks
SignatureCyberSEO Pro - the ultimate AI autoblogging and RSS, XML, HTML, JSON and CSV import plugin for WordPress with support for OpenAI o1, Claude, Gemini, Llama 3, Midjourney, DALL-E, Stable Diffusion and more.{{ DiscussionBoard.errors[5134709].message }} -