does anyone hav a random link scripts can share
Anyone Have
Collapse
X
-
lol fast and easy but there a better ways then this
Code:$url = rand(1,5); $ulink[1] = "<a href=\" link \">LINK1</a>"; $ulink[2] = "<a href=\" link \">LINK2</a>"; $ulink[3] = "<a href=\" link \">LINK3</a>"; $ulink[4] = "<a href=\" link \">LINK4</a>"; $ulink[5] = "<a href=\" link \">LINK5</a>"; echo "$ulink[$url]";
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
-
Look here http://www.2wap.org/forums/Source-codes-sm...ipts-t1400.html
you'll find it there plus other scripts aswell
Comment
-
it works by numbers
1 to 5
it will random pick to 1 to 5
link 3
link 1
link 5
link 4
link 2
just like thatVisit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
I use this random link code and never failed me.
Create file called links.php with the following code
Create txt file called ads.txtCode:<? echo " [size="1"]"; $xfile = @file("ads.txt"); $random_num = rand (0,count($xfile)-1); $udata = explode("::",$xfile[$random_num]); echo $udata[1]; echo "[/size] "; ?>
To add more links just add more lines and start line with ::
Add the following line in any page you want links to be shownCode:::[url="http://anysite.com"]Anysite[/url] ::[url="http://anothersite.org"]Another Site[/url] ::[url="http://onemoresite.net"]One More Site[/url]
Code:<?php include ("links.php"); ?>
Comment
Comment