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)
-   -   Can't find a simple code.. (https://gfy.com/showthread.php?t=69948)

Royaltee_Gee 07-30-2002 06:50 AM

Can't find a simple code..
 
Ok im looking for a simple code....

Ok it's a code you place in an html file and it forwards to a different url everytime.. and the urls i define in the code.

so if someone goes to

http://www.domain.com/test/

they'll get a different url each time, which just cycles through the list of urls I define.. So I could have like 10 different urls it goes to, so the 1st time they get URLA , 2nd Time URLB, etc... etc..


I know this is a simple code.. but having trouble finding it on the net.

thanks i advance guys.

hyper 07-30-2002 06:51 AM

i saw it yesterday
but forgot where

mrthumbs 07-30-2002 07:15 AM

This is what you need

Captain Canada 07-30-2002 08:14 AM

<?$f = file('your_list.txt');srand((double)microtime()*10 00000);$num = rand(0,count($f)-1);$url = $f[$num];header("Location: $url");?>

Save as php file example list.php

Put each url in a text file - one url per line - call it something like your_list - save as .txt file

Your url would look like http://www.your_domain.com/list.php

Captain Canada 07-30-2002 08:15 AM

Check the quote for the above post to get the file


All times are GMT -7. The time now is 03:00 AM.

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