Anyone with PHP skill could recreate this?

SpecialOne

Registered Member
Joined
Jan 12, 2011
Messages
65
Reaction score
21
As you know PHP can not be ripped with any software since it server side. I wonder if somebody could recreate this with PHP:

1)

1.png

2)

2.png


These 2 codes should be random numbers after every page refresh. It is simple as you can see but my PHP knowledge is so bad. Should be quick for someone who knows PHP.
 
Post on Hire a Freelancer section
 
OP, are you looking to add any function to this? Just displaying a random number is easy. Take this code:
Code:
http://www.site.com/?ref=<?php echo rand(100000,1000000);?>
Where the first number is the lowest value, and the second is the highest value.
So the above code will show a random number between 100,000 and 1,000,000.
Note that this will only display the number, if you want it to function with an actual affiliate system, it a whole other story.

EDIT
If you want to show the number at multiple places you could easily add the random number to a variable, like this:
Code:
<?php $random = rand(100000,1000000);?>
This is a random number <?php echo $random;?>, and here it's again: <?php echo $random;?>
 
Last edited:
OP, are you looking to add any function to this? Just displaying a random number is easy. Take this code:
Code:
http://www.site.com/?ref=<?php echo rand(100000,1000000);?>
Where the first number is the lowest value, and the second is the highest value.
So the above code will show a random number between 100,000 and 1,000,000.
Note that this will only display the number, if you want it to function with an actual affiliate system, it a whole other story.

EDIT
If you want to show the number at multiple places you could easily add the random number to a variable, like this:
Code:
<?php $random = rand(100000,1000000);?>
This is a random number <?php echo $random;?>, and here it's again: <?php echo $random;?>

Simple, effective and it is exactly what I needed. On Fiverr some wannabe coders wanted to rip me off 3 Gigs for this. Could you believe? Thx for helping me out ;)
 
Back
Top