Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/03/2012, 14:12
Avatar de Nemutagk
Nemutagk
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: México
Mensajes: 2.633
Antigüedad: 20 años, 1 mes
Puntos: 406
Respuesta: file_get_contents y header

seria mejor algo así...

Código PHP:
Ver original
  1. $contenido = file_get_contents($url);
  2.  
  3. if ($contenido === false) {
  4.     header('location: mi_url.php');
  5.     exit();
  6. }
  7.  
  8. echo $contenido;
__________________
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 =)