Problem with HTTP_Download

From: Date: Thu, 03 Mar 2005 12:32:42 +0000
Subject: Problem with HTTP_Download
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17808@lists.php.net to get a copy of this message
Hi I've installed latest pear packages HTTP, HTTP_Headwer & HTTP_Download I've followed the samples from pear's but I can't download a file. <?php require_once 'HTTP/HTTP_Download.php'; $dl = &new HTTP_Download(); $dl->setFile('/home/user1/file.pdf'); $dl->setContentDisposition(HTTP_DOWNLOAD_ATTACHMENT, 'test.zip'); // with ext/magic.mime // $dl->guessContentType(); // else: $dl->setContentType('application/zip'); $dl->send(); ?> It starts the download but I get a 0 bytes test.zip TIA

« previous php.pear.general (#17808) next »