Ver Mensaje Individual
  #9 (permalink)  
Antiguo 15/07/2007, 17:11
boadude
 
Fecha de Ingreso: octubre-2006
Mensajes: 9
Antigüedad: 20 años
Puntos: 0
Re: fopen - problemas!

Código PHP:
<?php    
    $fp 
= fopen("somefile.html", "w");
        
$ch = curl_init("url");

    
$cok = 'cockie';
    
        
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
        
curl_setopt($ch, CURLOPT_COOKIE, $cok);
    
curl_setopt($ch, CURLOPT_FILE, $fp);
    
       
curl_exec($ch);
       
curl_close ($ch);

?>