Ok I have this code that is in Java script. Just one problem. I need it to do the same thing it does but only with PHP code. Can anyone help me out? Here is the code. <script type="text/javascript"> var i=700 var x=1 for (x=0; x <= 1; x++){ i=700 while (i<=1000) { window.open("http://xxxxxxx.com/clicks3.php?seed="+ i +"&adid="+ i +"&userid=xxxxxx",'mywindow','width=800,height=600,resizable=yes,location=yes') i=i+1 } } </script>
I really just need this script to get random numbers where 700 and 1,000 are. If that can be done in java it would work for me. So where 700 and 1,000 are instead of it going from 700 to 1000 it would just put some random number there over and over again.
So you just want a number in-between 700 - 1,000? <?php $random = rand(700, 1000); echo $random; ?> PHP: If you need to use a window.open you could just echo the number out <?php echo $random; ?> in the url of the window.open.