can't get .htaccess file to send my html files to the PHP parser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lkrubner@geocities.com

    can't get .htaccess file to send my html files to the PHP parser


    Hi. I want all my html files sent to the php parser for parsing. I
    tried to put up an .htaccess file with just this in it:


    AddType application/x-php .htm
    Action application/x-php /usr/bin/php
    AddType application/x-php .html
    Action application/x-php /usr/bin/php



    Didn't work. Also tried /sbin/. Didn't work.

    This is the path, what am I doing wrong:

    _SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin

  • John Dunlop

    #2
    Re: can't get .htaccess file to send my html files to the PHP parser

    somebody wrote:
    [color=blue]
    > I want all my html files sent to the php parser for parsing.[/color]

    Why don't you just name the files .php?

    --
    Jock

    Comment

    • lkrubner@geocities.com

      #3
      Re: can't get .htaccess file to send my html files to the PHP parser

      > Why don't you just name the files .php?

      And break all the links in Google? No thanks. I want the existing files
      to start acting like PHP files.

      Comment

      • John Dunlop

        #4
        Re: can't get .htaccess file to send my html files to the PHP parser

        somebody wrote:
        [color=blue]
        > [somebody wrote:]
        >[color=green]
        > > Why don't you just name the files .php?[/color]
        >
        > And break all the links in Google?[/color]

        Why would you do that?
        [color=blue]
        > I want the existing files to start acting like PHP files.[/color]

        The widespread convention is to suffix filenames of PHP files
        with '.php'. I suggested it because it is a convention. You
        don't have to follow it.

        --
        Jock

        Comment

        Working...