Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/02/2010, 21:43
Avatar de eft0
eft0
 
Fecha de Ingreso: junio-2003
Ubicación: Santiago - Chile
Mensajes: 635
Antigüedad: 20 años, 10 meses
Puntos: 9
Respuesta: Problema server + ftp + php

Si la autenticacion es http, simple usa cURL.

Código PHP:
<?php
$ch 
curl_init();
 
// opciones del dominio user y pass
curl_setopt($chCURLOPT_URL"http://mydomain.com.org");
curl_setopt($chCURLOPT_RETURNTRANSFER1); 
curl_setopt($chCURLOPT_HTTPAUTHCURLAUTH_BASIC);
curl_setopt($chCURLOPT_USERPWDbase64_encode('admin:pw001');
 
curl_exec($ch);
 
curl_close($ch);
?>
Luego de eso puedes seguir normalmente con tú codigo para descarga.
__________________
eft0's stuff! - http://estebanfernandez.net