Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Savoir si un telechargement a abouti

Received: by 10.66.85.199 with SMTP id j7mr1158659paz.36.1347717907176;
        Sat, 15 Sep 2012 07:05:07 -0700 (PDT)
Path: t10ni52627312pbh.0!nntp.google.com!border1.nntp.dca.giganews.com!backlog1.nntp.dca.giganews.com!backlog1.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp4-2.free.fr!not-for-mail
Subject: Savoir si un telechargement a abouti
From: =?ISO-8859-15?Q?St=E9phane_Santon?= <news...@team-santonum.com>
Newsgroups: fr.comp.lang.php
Message-ID: <mn.73f37dc9c3d62037.121262@team-santonum.com>
Organization: cdie
X-Newsreader: MesNews/1.08.03.00
Date: Fri, 14 Sep 2012 16:51:08 +0200
MIME-Version: 1.0
X-Face: #0?irvdFiM!(Tpl}/tO%_kuSW_^9G5aeIEnY1uNPcd@N_U.B30\*[%N-cnqSC,rEfeq\m:b oR({RM{x03]Iv}^2xc7\J][^MkbL3DYdLevZ$&h0WbH!i:>O1i#FLy/mO2G~xMF<YSj^@q9sRC~iP> *uQnfN4xre8v9%0fqg;i.!ymm~6w2nEx);Q~Q*8&dUO(fn
Lines: 37
NNTP-Posting-Date: 14 Sep 2012 16:51:06 CEST
NNTP-Posting-Host: 2.6.123.57
X-Trace: 1347634266 news-1.free.fr 6114 2.6.123.57:53973
X-Complaints-To: abuse@proxad.net
Bytes: 2126
X-Original-Bytes: 1991
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit

Bonjour,

Je veux tracer les chargements d'un PDF.

Pour assurer le telechargement du fichier PDF, j'ai �a :
  LogAction( 'charge_debut');

  $lsSize = filesize( $lsFile);
  header( "Content-Type: application/force-download; 
name=\"$lsCible\"");
  header( "Content-Transfer-Encoding: binary");
  header( "Content-Length: $lsSize");
  header( "Content-Disposition: attachment; filename=\"$lsCible\"");
  header( "Expires: 0");
  header( "Cache-Control: no-cache, must-revalidate");
  header( "Pragma: no-cache");
  readfile( $lsFile);

  LogAction( 'Charge_fin');

La fen�tre d'enregistrement appara�t, je peux sauver le fichier.

Mais comment savoir si l'utilisateur a bien termin� le t�l�chargement ?
J'ai toujours le log de chargement fini que l'on ait valid� ou annul� 
l'enregistrement...

Merci

-- 
St�phane

Jeune Chambre Economique de Saintes  *** http://www.jce-saintes.org
Agitateurs d'id�es... acc�l�rateurs de talents !

BTS Electrotechnique *** http://enselec.santonum.eu