GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP random numbers? Help needed (https://gfy.com/showthread.php?t=976323)

Oracle Porn 07-03-2010 04:06 AM

PHP random numbers? Help needed
 
Anyone has a random numbers script that I set up a fake tube with?
I'm looking for a script to output fake random numbers for views and for length, anyone can help?

k0nr4d 07-03-2010 04:10 AM

<? echo rand(0,1000); ?>

http://lu2.php.net/rand

k0nr4d 07-03-2010 04:12 AM

oh, and for length...

<?
function sec2time($s) {
$d = intval($s/86400);
$s -= $d*86400;
$h = intval($s/3600);
$s -= $h*3600;
$m = intval($s/60);
$s -= $m*60;
if ($d) $str = $d . ':';
if ($h) $str .= $h . ':';
if ($m) { $str .= str_pad($m,2,'0',STR_PAD_LEFT) . ':'; } else { $str .= "00:"; }
$str .= str_pad($s,2,'0',STR_PAD_LEFT);
return $str;
}
echo sec2time(rand(0,1000));
?>

Oracle Porn 07-03-2010 04:28 AM

thanks, the first one helps more, i found something like this:


Length: <?php print rand(10, 30). ":"; print rand(10, 60); ?>
Views: <?php print rand(1, 99999); ?>


All times are GMT -7. The time now is 12:56 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc