Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Gallery Skimming! (http://www.greenguysboard.com/board/showthread.php?t=5406)

GM 2004-03-01 02:07 AM

Gallery Skimming!
 
OK! I need help! the follwoing script is used for random link:

$fileName = "./name.txt";
mt_srand( (double) microtime() * 1000000 );
$a = file($fileName);
$randNum = mt_rand( 0, sizeof($a)-1 );
header( "Location: ". $a[$randNum] );
?>

And it works great now i want to add gallery skimming option so that i may send some hits to blind link sponsors how can i do that?

Entreri 2004-03-01 03:34 AM

Re: Gallery Skimming!
 
Quote:

Originally posted by GM
OK! I need help! the follwoing script is used for random link:

$fileName = "./name.txt";
mt_srand( (double) microtime() * 1000000 );
$a = file($fileName);
$randNum = mt_rand( 0, sizeof($a)-1 );
header( "Location: ". $a[$randNum] );
?>

And it works great now i want to add gallery skimming option so that i may send some hits to blind link sponsors how can i do that?

I'm not sure what you want here. Here's a small mod on your code for some basic skimming.

Code:

        mt_srand( (double) microtime() * 1000000 );

        if ((mt_rand(0,100) >= 60)){
          header("Location: someothersite.com");
        }else{

                $fileName = "./name.txt";
                $a = file($fileName);
                $randNum = mt_rand( 0, sizeof($a)-1 );
                header( "Location: ". $a[$randNum] );
        }
?>

Entreri.

GM 2004-03-03 02:46 AM

THANK YOU!
 
Hi! Entreri

THANK YOU VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY VERY MUCH!

This is exactly what i needed!

Thanx agin mate!

:) :) :) :) :)


All times are GMT -4. The time now is 06:36 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc