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
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
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\"");
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
4 matches
Mail list logo