Download file

From: Date: Wed, 01 Aug 2001 19:08:12 +0000
Subject: Download file
Groups: php.general 
Request: Send a blank email to php-general+get-60748@lists.php.net to get a copy of this message
GlacierHello, I have script which initiates a download of a file to the client machine. I am using following headers followed by a ReadFile (everything is working fine): =====================code snippet========== header ("Content-type: application/tar"); header("Content-Length: $len"); header ("Content-Disposition: attachment; filename=download.tar"); readfile($filename); ===================end code snippet========= What I need to do, is specify the default directory for this file to be saved to. Does anyone know how to do this? Thanks. Karl J. Stubsjoen www.iexcelinlife.com karl@iexcelinlife.com Phone: 602.4000047

« previous php.general (#60748) next »