download script

From: Date: Wed, 22 Aug 2001 00:19:00 +0000
Subject: download script
Groups: php.general 
Request: Send a blank email to php-general+get-63799@lists.php.net to get a copy of this message
Hi, I'm working on a download script header("Content-Type: application/octet-stream\n"); header("Content-Length: $size\n"); header("Content-Disposition: attachment; filename=\"$file\"\n"); header("Content-Description: Download\n"); readfile($path.$file); This works, but when the initial file download box pops up it says downloading file download.php (the name of the script), instead of the filename. The correct filename does appear in the next save as box. Does anyone know how to get the filename to show up in the initial file download box? Or, alternatively, how to bypass the first box alltogether (like it is done at downloads.com, for example)? Thanks, Adam

« previous php.general (#63799) next »