 
			
				07/07/2011, 15:55
			
			
			     |  
      |    |    |    Fecha de Ingreso: noviembre-2008  Ubicación: Lima  
						Mensajes: 48
					  Antigüedad: 17 años Puntos: 2     |        |  
  |      Respuesta: problemas al leer archivo        mira el problema no es la funcion file_get_contents 
e ejecutado el codigo y lee normal el problema es este trozo de codigo   
$ch = curl_init('url'); 
            curl_setopt ($ch, CURLOPT_POST, 1); 
            curl_setopt ($ch, CURLOPT_POSTFIELDS, "ndui=".$params['vp_dua']); 
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); 
            curl_setopt($ch, CURLOPT_TIMEOUT, 120); 
	     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
            $fp = fopen("dua".$_SESSION['vl_iduser'].".txt", "w"); 
            curl_setopt($ch, CURLOPT_FILE, $fp); 
            curl_setopt($ch, CURLOPT_HEADER, 0); 
            curl_exec ($ch); 
            curl_close ($ch); 
sleep(10); 
$gestor = fopen("dua".$_SESSION['vl_iduser'].".txt", "r"); 
$handle = fread($gestor, filesize("dua".$_SESSION['vl_iduser'].".txt")); 
fclose($gestor);     
al momento de leer el archivo me retorna un tamaño de 16000 y cuando lo veo el tamaño del fichero en la ruta me sale 18000 cual puede ser el problema ya le he puesto sleep(10) y nada           |