PDA

View Full Version : Gallery Skimming!


GM
2004-03-01, 03:07 AM
OK! I need help! the follwoing script is used for random link:

<?php
$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, 04:34 AM
Originally posted by GM
OK! I need help! the follwoing script is used for random link:

<?php
$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.


<?php
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, 03:46 AM
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!

:) :) :) :) :)