![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/07/2013, 13:43
|
![Avatar de Nemutagk](http://static.forosdelweb.com/customavatars/avatar60179_3.gif) | Colaborador | | Fecha de Ingreso: marzo-2004 Ubicación: México
Mensajes: 2.633
Antigüedad: 20 años, 10 meses Puntos: 406 | |
Respuesta: Como acer Include aleatorio, pero solo una vez? Se me hace mas sencillo así...
Código PHP:
Ver original<?php if (!isset($_SESSION['pag'])) { $paginas = array('1.php','2.php','3.php'); $_SESSION['pag'] = $pag; }else { $pag = $_SESSION['pag']; } include($pag);
__________________ Listo?, tendría que tener 60 puntos menos de IQ para considerarme listo!!!
-- Sheldon Cooper http://twitter.com/nemutagk
PD: No contestaré temas vía mensaje personal =) |