Rango: Friend de SMFSimple
Mensajes: 1361
Points: 181
Mi web:
Perfil:
Pais:
Reply #6 November 17, 2010 - 03:41 15:41
Puse estos codigos q encontre en el net pero no trabajan.
<php
$urls = array (
'1.html',
'2.html',
'3.html',
'4.html',
'5.html',
'6.html',
'7.html',
'8.html',
'9.html',
'10.html',
);
$site = http://midominio.com/polprtop10/;
$i= rand(0,count($urls));
header (Location: $site$urls[$i]);
?>
y este otro
<?php
$mypages = array("1.html", "2.html", "3.html", "4.html", "5.html", "6.html", "7.html", "8.html", "9.html", "10.html");
$myrandompage = $mypages[mt_rand(0, count($mypages) -1)];
echo $myrandompage;
?>
No se por q no trabajan.
Saludos
Maliante