Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/06/2008, 11:17
Avatar de hawaiian050
hawaiian050
 
Fecha de Ingreso: junio-2007
Mensajes: 285
Antigüedad: 16 años, 10 meses
Puntos: 2
Algo alternativo a file_get_contents ?

Hola, mi pregunta pasa por que no me esta funcionando un script mio, ahi anguna alterbativa pra usar en ves de $web = file_get_contents($url); ?

este es el codigo:

Código PHP:
$url   "http://www.web.com"

$web file_get_contents($url); 
 
  
$res preg_match_all(
    
"/[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}/i",
    
$web,
    
$matches
  
);

  if (
$res) {
    foreach(
array_unique($matches[0]) as $email) {
      echo 
$email "<br />"
este es el error que da:

Warning: file_get_contents(http://) [function.file-get-contents]: failed to open stream: Redirection limit reached, aborting in

Muchas gracias, saludos