You can also initiate the download with headers yourself...tho it might be a bit cumbersome than just using direct links:
Header( "Content-Type: application/octet-stream" ); Header( "Content-Length:" . filesize( $path ) ); Header( "Content-Disposition: attatchment; filename=$filename" ); readfile( $path ); exit; -----Original Message----- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 3:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Serving files with different filename from their own On Friday 27 June 2003 18:11, Jason End wrote: > Is there a way to serve files with a different file > name than they actually have? > Here's my situation: > Users can upload software manuals, which are then > saved with a unique name. Their title, filename, type > and id are then save into a db. > But when they go to download a file, they'll of course > see a very cryptic filename in their save as dialog. > Lets say they aren't smart enough to change that name. > > So would their be a way to serve a file with a > different name than it's actual one? On a un*x system you can use symlinks. Otherwise you can have php handle the download, see archives for more info. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Carson's Consolation: Nothing is ever a complete failure. It can always be used as a bad example. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php