Random of several links

Status
Not open for further replies.

Triapod

Member
Original poster
member
Joined
Jul 31, 2011
Posts
131
Reaction score
5
Points
15
Since VB keygens are not an option right now, I want to create several fake txt or html files that will be uploaded to a PPD. I will put a download link on my site that I want to redirect to one of these downloads. I want the download that is redirected to to be random.

Does anyone know how i can go about this. Very new to html
Thank you
 

Fang

Veteran
veteran
old school
senior
coldschool
member
Joined
Dec 21, 2009
Posts
3,861
Reaction score
1,116
Points
198
Location
USA
Read the thread, and didn't understand shit... sum it up
 

Triapod

Member
Original poster
member
Joined
Jul 31, 2011
Posts
131
Reaction score
5
Points
15
I'm rubbish at making threads lol
Tried to make it more coherent
 

Flip

Old School
old school
member
Joined
Jul 23, 2009
Posts
263
Reaction score
69
Points
108
You'd want to use PHP for this.

Code:
[COLOR=#000000][/COLOR]<?php
$urls = array("www.site1.com",
              "www.site2.com",
              "www.site3.com");
$url = $urls[array_rand($urls)];
header("Location: http://$url");
?>
Something like that
 

Triapod

Member
Original poster
member
Joined
Jul 31, 2011
Posts
131
Reaction score
5
Points
15
Thanks. I'll look into using PHP like that
 
Status
Not open for further replies.