Re: bajar documento

From: Date: Thu, 20 Jun 2002 18:24:10 +0000
Subject: Re: bajar documento
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-24080@lists.php.net to get a copy of this message
$file = "tu_doc.doc"; $url = $path_a_tu_doc."/".$file; header ("Content-Disposition: attachment; filename=".$file."\n\n"); header ("Content-Type: application/octet-stream"); header ("Content-Length: ".filesize($url)); readfile($url); suerte ----- Original Message ----- From: "Guerrero, Jose" <J.GUERRERO@CGIAR.ORG> To: <lista@phpes.com> Sent: Thursday, June 20, 2002 3:00 PM Subject: [PHP-ES] bajar documento > Saludos listeros, aqui les tengo una preguntita: > Tengo un documento word en mi webserver, quiero hacer un programa en php que > desde un cliente haga un download a ese documento sin que lo abra ... muchas > gracias muchachos > > Jose Guerrero > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > via news: news://news.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com > >

« previous php.general.es (#24080) next »