Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-03-01, 02:07 AM   #1
GM
Rock stars ... is there anything they don't know?
 
Join Date: Apr 2003
Location: Pakistan
Posts: 16
Question Gallery Skimming!

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?
__________________
Life is to ENJOY! so enjoy it!
GM is offline   Reply With Quote
Old 2004-03-01, 03:34 AM   #2
Entreri
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Feb 2004
Posts: 42
Re: Gallery Skimming!

Quote:
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.

Code:
<?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.
Entreri is offline   Reply With Quote
Old 2004-03-03, 02:46 AM   #3
GM
Rock stars ... is there anything they don't know?
 
Join Date: Apr 2003
Location: Pakistan
Posts: 16
Talking 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!

__________________
Life is to ENJOY! so enjoy it!
GM is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:26 AM.


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