Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/12/2008, 14:32
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: ayuda con bot

Código PHP:
$query mysql_query("SELECT * FROM tuTabla");
while(
$row mysql_fetch_assoc($query)) {
  
$file file_get_contents($row['campoUrl']);
  if(
stristr($file'Invalid')) mysql_query("UPDATE tabla(columna) VALUES('0') WHERE id = '".$row['id']."'");
  else 
mysql_query("UPDATE tabla(columna) VALUES('1') WHERE id = '".$row['id']."'");