Create Random data

Started on the old forum in July 2011 · view the original in the archive · old links redirect here

#random #script #submit #url

7 replies · 468 views · started 15 years ago · 1 min read

3 participants
Sifat3d Developer · 66 posts #1

http://mysite.com/post.protect?titlename=test1&content=toystory1

i want to make a script that when i visit a page named index.php it will change the test1 and toystory1 to any random alphanumeric text and visit the url, i think this is very easy but just cant figure out how. Can anyone help me pls? Serverside or browserside(javascript), any will do.

Fake hack any website,even coding-talk for some clean FUN!!! Try: fake hacking website Mig33 Software for pc: Mig33 for PC mobile games and software download

something else Fellow · 2,296 posts #2
<?php
$array = ["something","else","hello","world"];
$rand = rand(count($array));
echo $array[$rand];
?>
Sifat3d Developer · 66 posts #3

something else wrote:

<?php
$array = ["something","else","hello","world"];
$rand = rand(count($array));
echo $array[$rand];
?>

I figured out that myself, but it just posts the four words given, they can easily be guessed. I want alphanumeric numbers generated which can not(unless extremely lucky) guessed. Thats where im getting stuck 🙁

Fake hack any website,even coding-talk for some clean FUN!!! Try: fake hacking website Mig33 Software for pc: Mig33 for PC mobile games and software download

something else Fellow · 2,296 posts #4

hers a random string generator (i did not script this)

$len = 16;
$base='ABCDEFGHKLMNOPQRSTWXYZabcdefghjkmnpqrstwxyz123456789';
$max=strlen($base)-1;
$activatecode='';
mt_srand((double)microtime()*1000000);
while (strlen($activatecode)<$len+1)
  $activatecode.=$base{mt_rand(0,$max)};
  
echo $activatecode;
something else Fellow · 2,296 posts #6

why do you need to use cron ? cant you script it to make your referers do the work for you?

CreativityKills Lead · 833 posts #7

Something else, how did u manage to make random string so complicated my man.

$random = substr( sha1( uniqid( rand(), TRUE ) ), 10 );

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close