GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Script for linking out like this... (https://gfy.com/showthread.php?t=1078401)

beks001 08-18-2012 08:05 AM

Script for linking out like this...
 
I am looking for a script that will allow me to rotate a text link. Example, domain.com/linkscript.php -> clicking out rotates to link1.com, link2.com, link3.com so on and so forth.

Any suggestions? Bascially, I'm looking for a rotating link script.

Either that or just some code that will rotate a multiple header redirect if that's even possible. I'm not a programmer...

freecartoonporn 08-18-2012 08:17 AM

PHP Code:

<?php
$arr 
= array("http://www.site1.com""http://www.site2.com");
header ("Location: " $arr[array_rand($arr)]);


brassmonkey 08-18-2012 10:01 AM

maybe? http://www.ljscripts.com/freescripts/

beks001 08-18-2012 11:16 AM

Quote:

Originally Posted by freecartoonporn (Post 19132370)
PHP Code:

<?php
$arr 
= array("http://www.site1.com""http://www.site2.com");
header ("Location: " $arr[array_rand($arr)]);


Awesome my friend. Thank you! Will this rotate them evenly or is this just going to be completely random you think?

grumpy 08-18-2012 03:52 PM

Quote:

Originally Posted by beks001 (Post 19132649)
Awesome my friend. Thank you! Will this rotate them evenly or is this just going to be completely random you think?

will go random.


All times are GMT -7. The time now is 03:04 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123