Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1884 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Random Numbers PHP Script

Thread title: Random Numbers PHP Script
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
05-05-2008, 10:58 AM
#1
JamieH is offline JamieH
JamieH's Avatar
Status: I love this place
Join date: Jan 2006
Location:
Expertise:
Software:
 
Posts: 533
iTrader: 10 / 100%
 

JamieH is on a distinguished road

  Old  Random Numbers PHP Script

Basically i found this small script on Google today, i just want to know a few answers:

PHP Code:
<?php 

$random_number 
rand(1,10);
$random_numbertwo rand(1,10); 

print 
"<p>$random_number.</p>\n";
print 
"<p>$random_numbertwo.</p>\n"

?>
If i wanted to use this script at the backend of my website.. so when i press a button it will refresh the numbers and place the 2 numbers on the main page of the website so both numbers are seeable by the public. How would i do this?

Is this safe? Can it be broken so people from the public can see what the next number will be?

Is there a better way of doing it?

Many thanks,
Jamie Hann

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed