Re: Executing a file with rtf-extension
| From: | Phil Driscoll | Date: | Mon, 12 Aug 2002 16:56:37 +0000 |
| Subject: | Re: Executing a file with rtf-extension | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112158@lists.php.net to get a copy of this message | ||
On Monday 12 August 2002 3:52 pm, Adam Voigt wrote:
> My guess would be that this is a browser issue, with the
> browser associating .rtf with a word doc (or Rich Text to be
> more accurate) and if this is the case, there's not much you
> can do except not name your PHP files .rtf. Since, each person
> who comes to your site will most likely have .rtf set as
> a Rich Text Document and will try and interpret it.
There may be an issue about what the browser chooses to do with the .rtf
extension, however if the web server was correctly configured, the php source
of the .rtf file would not be sent by the server, but would have at least
been interpreted by php, which would then have sent out the correct mime type
header to give the browser a chance of interpreting the data as html.
Maybe the iis script mapping configuration is being overridden somewhere in
the tree by a child node?
Cheers
--
Phil Driscoll