Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/08/2009, 09:22
nicoduca
 
Fecha de Ingreso: marzo-2009
Mensajes: 77
Antigüedad: 16 años
Puntos: 0
Respuesta: If () Que es lo que esta mal en esta condicion ?

Hola ... Gracias a los dos por responder pero sigo sin encontrar la solucion. Ahora modifique unas cosas pero sigue sin funcionarme. Alguien tiene otra idea o que es lo que estoy haciendo mal ?

Gracias

$file_pr5to9_withNofollow = fopen(SORTED_URLS_WITH_NOFOLLOW, 'a');
$file_pr5to9_withoutNofollow = fopen(SORTED_URLS_WITHOUT_NOFOLLOW, 'a');
$getFirstUrl = getAndRemoveFirstUrl(SORTED_URLS_FILENAME_NO_REPEA T);
$getFirstUrl_2 = substr($getFirstUrl, 1,120);
$getFirstUrl_2 = substr($getFirstUrl_2, 8,120);
$getFirstUrl_2 = ("http://" . $getFirstUrl_2);
$sourceNofollow = file_get_contents($getFirstUrl_2);
$nofol = "nofol";
if (strpos($sourceNofollow, $nofol))
{
$getFirstUrl_2 = ($getFirstUrl_2 . "\n");
fwrite ($file_pr5to9_withNofollow, $getFirstUrl_2);
}
else
{
$getFirstUrl_2 = ($getFirstUrl_2 . "\n");
fwrite ($file_pr5to9_withoutNofollow, $getFirstUrl_2);
}
fclose($file_pr5to9_withNofollow);
fclose($file_pr5to9_withoutNofollow);

if (!empty($getFirstUrl))
{
die("<script>location.href = 'request_2.php'</script>");
}
else
{
// Fin del Programa
echo "<b>Fin TOTAL del Programa</b><br />";
}