Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/04/2010, 19:47
rpv
 
Fecha de Ingreso: febrero-2010
Mensajes: 275
Antigüedad: 14 años, 2 meses
Puntos: 10
Respuesta: Problema: Comprobar paginas iguales

Código PHP:
Ver original
  1. $ch1 = curl_init();
  2. $ch2 = curl_init();
  3.  
  4. curl_setopt($ch1,CURLOPT_URL,'http://tatusea.com/');
  5. curl_setopt($ch2,CURLOPT_URL,'http://viedma.net/');
  6.  
  7. curl_setopt($ch1,CURLOPT_RETURNTRANSFER,1);
  8. curl_setopt($ch2,CURLOPT_RETURNTRANSFER,1);
  9.  
  10. $web1=curl_exec($ch1);
  11. $web2=curl_exec($ch2);
  12.  
  13. curl_close($ch1);
  14. curl_close($ch2);
  15.  
  16. if ($web1 == $web2){echo 'iguales';}else{echo 'diferentes';}