Re: Change the filename sent via html header
| From: | Lindsay Adams | Date: | Tue, 03 Apr 2001 19:53:25 +0000 |
| Subject: | Re: Change the filename sent via html header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46880@lists.php.net to get a copy of this message | ||
On 4/3/01 12:34 PM, "Spunk S. Spunk III" <spunk@mac.com> 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
> there a way to do this?
>
> Spunk
>
If you are using include() to send the file in the header, then it doesn't
matter WHAT the extension is. All files sent through include() are parsed as
if they were PHP, with or without the php extension. So, as long as nothing
in your smil file looks like php, then it will just get passed through (as
if it were html).