[PHP] Change the filename sent via html header

2001-04-03 Thread Spunk S. Spunk III
I've got a script that returns a smil file in a header but I'd like to change the name of the file. The file is sent as blah.php (even though it is a smil file) but I'd like to be able to name it something like blah.sml. Is there a way to do this? Spunk -- PHP General Mailing List

Re: [PHP] Change the filename sent via html header

2001-04-03 Thread Lindsay Adams
On 4/3/01 12:34 PM, "Spunk S. Spunk III" [EMAIL PROTECTED] wrote: I've got a script that returns a smil file in a header but I'd like to change the name of the file. The file is sent as blah.php (even though it is a smil file) but I'd like to be able to name it something like blah.sml. Is

Re: [PHP] Change the filename sent via html header

2001-04-03 Thread Frank M. Kromann
You can use something like this: ?PHP $strMimeType = "image/gif" $strName = "myfile.gif"; $iFileSize = filesize($strName); Header("Content-Type: $strMimeType; name=\"$strName\""); Header("Content-Length: $iFileSize"; Header("Content-Disposition: inline; filename=\"$strName\"");

Re: [PHP] Change the filename sent via html header

2001-04-03 Thread Spunk S. Spunk III
Okay, So here's what it looks like now: header("Content-type: application/x-quicktimeplayer"); header("Content-Disposition: attachment; filename=blah.qtl" ); print(GenerateSMILAlbum($baseURL, $directory, $mp3Array, $albumCover)); This gets me two download dialogs on windows machines if I select