Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/08/2006, 15:01
AlvaroG
Invitado
 
Mensajes: n/a
Puntos:
A partir de php 4.4.x para fopen (probado por mí, a pesar de lo que dice el manual...), y php5 para file_get_contents, podés usar el parámetro 'contexto' de la función.

http://www.php.net/fopen
http://www.php.net/file_get_contents
http://www.php.net/stream_context_create

fijate la página de stream_context_create, ahí podés crear la cabecera "User-Agent" que necesites.

Saludos.