Re: [PHP] Executing a file with rtf-extension

2002-08-12 Thread Adam Voigt

Oh, I think see what your saying now. Why not try
leaving it named a .php file and simply setting the
content disposition to "word/rtf" or whatever the
appropriate type is? I do that with PDF's, so that
the page you goto is named .php but it auto-loads the
PDF plugin because it see's the content disposition.

Adam Voigt
[EMAIL PROTECTED]

On Mon, 2002-08-12 at 11:56, Kai Hinkelmann wrote:
> Yes, that is the intention! The browser SHOULD open WORD (or Wordpad
or what
> else) and the script should generate the content on the server,
independent
> from the client.
> 
> The problem must lie within IIS- oder PHP-Configuration.
> 
> But I don't know, where.
> 
> "Adam Voigt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 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.
> >
> > Adam Voigt
> > [EMAIL PROTECTED]
> >
> > On Mon, 2002-08-12 at 11:44, Kai Hinkelmann wrote:
> > > Hi,
> > >
> > > I want to execute a php-script, which file-extension ist .rtf.
Though I
> > > entered .rtf in the mmc->iis-configuration as a fileextension for
> "php.exe
> > > %s %s" (and restarted the service) the server doesn't start php
but
> sending
> > > the script uninterpreted back to client (in this case: ms-word).
> > >
> > > When I start php from the comandline like "php myfile.rtf"
everything
> works
> > > fine and I get the wanted output (on the comandline).
> > >
> > > Simple question: where else to enter the fileextension?
> > >
> > > Thanks
> > >
> > > Kai
> > >
> > >
> > >
> > >
> > > --
> > > 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
> 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Executing a file with rtf-extension

2002-08-12 Thread Kai Hinkelmann

Thanks

but since this one is a testserver there is only one webnode and the script
runs (or runs not :-( ) in this node.

Bye

Kai

"Phil Driscoll" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Executing a file with rtf-extension

2002-08-12 Thread Kai Hinkelmann

Yes, that is the intention! The browser SHOULD open WORD (or Wordpad or what
else) and the script should generate the content on the server, independent
from the client.

The problem must lie within IIS- oder PHP-Configuration.

But I don't know, where.

"Adam Voigt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.
>
> Adam Voigt
> [EMAIL PROTECTED]
>
> On Mon, 2002-08-12 at 11:44, Kai Hinkelmann wrote:
> > Hi,
> >
> > I want to execute a php-script, which file-extension ist .rtf. Though I
> > entered .rtf in the mmc->iis-configuration as a fileextension for
"php.exe
> > %s %s" (and restarted the service) the server doesn't start php but
sending
> > the script uninterpreted back to client (in this case: ms-word).
> >
> > When I start php from the comandline like "php myfile.rtf" everything
works
> > fine and I get the wanted output (on the comandline).
> >
> > Simple question: where else to enter the fileextension?
> >
> > Thanks
> >
> > Kai
> >
> >
> >
> >
> > --
> > 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




Re: [PHP] Executing a file with rtf-extension

2002-08-12 Thread Phil Driscoll

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Executing a file with rtf-extension

2002-08-12 Thread Adam Voigt

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.

Adam Voigt
[EMAIL PROTECTED]

On Mon, 2002-08-12 at 11:44, Kai Hinkelmann wrote:
> Hi,
> 
> I want to execute a php-script, which file-extension ist .rtf. Though I
> entered .rtf in the mmc->iis-configuration as a fileextension for "php.exe
> %s %s" (and restarted the service) the server doesn't start php but sending
> the script uninterpreted back to client (in this case: ms-word).
> 
> When I start php from the comandline like "php myfile.rtf" everything works
> fine and I get the wanted output (on the comandline).
> 
> Simple question: where else to enter the fileextension?
> 
> Thanks
> 
> Kai
> 
> 
> 
> 
> -- 
> 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




[PHP] Executing a file with rtf-extension

2002-08-12 Thread Kai Hinkelmann

Hi,

I want to execute a php-script, which file-extension ist .rtf. Though I
entered .rtf in the mmc->iis-configuration as a fileextension for "php.exe
%s %s" (and restarted the service) the server doesn't start php but sending
the script uninterpreted back to client (in this case: ms-word).

When I start php from the comandline like "php myfile.rtf" everything works
fine and I get the wanted output (on the comandline).

Simple question: where else to enter the fileextension?

Thanks

Kai




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php