Phrasing html pages as php

Discussion in 'PHP' started by st_jimi, Jun 28, 2007.

  1. #1
    i want to keep my websites pages as .html because i understand search engines rank these higher than .php pages, but there are some simple php scripts i want to use on my site like a ad rotator and a anti ddos script. ive been trying to find away of getting php to work in html ive tried .ssi but that doesn't work, ive heard that you can phrase .html pages to work server side by phrasing them with .htaccess . is this true if so does anyone know how to do it or know of a tutorial showing my how to do it.

    or if anyone else knows how to get scripts to work in html id like to know

    thanks in advanced
     
    st_jimi, Jun 28, 2007 IP
  2. xxKillswitch

    xxKillswitch Peon

    Messages:
    331
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    A quick Google search pulled this up...
    eukhost.com/support/knowledgebase/using-php-tag-in-html-pages/

    I had an article on this subject before that I thought I saved, but I guess I didn't. That link above seems to be pretty much what it was about though.
     
    xxKillswitch, Jun 28, 2007 IP
  3. st_jimi

    st_jimi Peon

    Messages:
    632
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ah the problem with that guide is i dont have access to the appache configs as im only on shared hosting

    i found this site which tells me to add the same line to .htaccess

    AddType application/x-httpd-php .php .html

    will this work the same

    jimi
     
    st_jimi, Jun 28, 2007 IP