Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/09/2009, 13:35
nicoduca
 
Fecha de Ingreso: marzo-2009
Mensajes: 77
Antigüedad: 17 años, 6 meses
Puntos: 0
Como cargar la pagina varias veces seguidas

Hola tengo este php que necesito que cada vez que termine vuelva a cargar la misma pagina, en este caso request_2.php
O sea una vez que entra, que pase por el if haga todo lo que tenga que hacer y vuelva a cargar este request_2.php

Código PHP:

$file_pr5to9_withNofollow 
= fopen(SORTED_URLS_WITH_NOFOLLOW, 'a');
$file_pr5to9_withoutNofollow = fopen(SORTED_URLS_WITHOUT_NOFOLLOW, 'a');
$getFirstUrl = getAndRemoveFirstUrl(SORTED_URLS_FILENAME_NO_REPEAT);
$getFirstUrl = substr($getFirstUrl, 1,120);
$getFirstUrl = substr($getFirstUrl, 8,120);
$getFirstUrl = ("http://" . $getFirstUrl);

$sourceNofollow = file_get_contents($getFirstUrl);
$nofol = "nofol";
    if (
strpos($sourceNofollow, $nofol)) 
    {
        
$getFirstUrl = ($getFirstUrl . "\n");
        
fwrite ($file_pr5to9_withNofollow, $getFirstUrl);    
    }
    else
    {
        
$getFirstUrl = ($getFirstUrl . "\n");
        
fwrite ($file_pr5to9_withoutNofollow, $getFirstUrl);    
    }
fclose($file_pr5to9_withNofollow);
fclose($file_pr5to9_withoutNofollow);    

ACA NECESITARIA ALGO PARA QUE LO VUELVA A CARGAR. MAS DE UNA VEZ. 
Alguien me puede dar una idea ?
Gracias !!