Anyone Have

Started on the old forum in July 2008 · view the original in the archive · old links redirect here

6 replies · 570 views · started 18 years ago · 1 min read

3 participants
subzero Super moderator Fellow · 3,954 posts #2

lol fast and easy but there a better ways then this

$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... _______…

subzero Super moderator Fellow · 3,954 posts #5

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 that

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... _______…

stretch Developer · 130 posts #6

I use this random link code and never failed me. External image (may be gone)

Create file called links.php with the following code

<?
echo "
[size="1"]";
$xfile = @file("ads.txt");
$random_num = rand (0,count($xfile)-1);
$udata = explode("::",$xfile[$random_num]);
echo $udata[1];
echo "[/size]
";

?>

Create txt file called ads.txt To add more links just add more lines and start line with ::

::[url="http://anysite.com"]Anysite[/url]
::[url="http://anothersite.org"]Another Site[/url]
::[url="http://onemoresite.net"]One More Site[/url]

Add the following line in any page you want links to be shown

<?php

include ("links.php");

?>

= = = = = The more you laugh...the longer you live. Read more jokes at http://fun-files.co.cc

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close