Parsing PHP in HTML

Discussion in 'PHP' started by broadbang, Dec 22, 2007.

  1. #1
    Hi
    I am technically not so much sound ....Can any one please help me that how can i parse php page in HTML.My website is running at LINUX server.
    Thanks IN Advance
     
    broadbang, Dec 22, 2007 IP
  2. NoobieDoobieDo

    NoobieDoobieDo Peon

    Messages:
    1,456
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to have the php package and what not installed on your server. Most web servers have php installed already. Google phpinfo to see how to test what php stuff you got going on.

    If you don't have php installed send me a msg and I'll install it for you for a small fee.
     
    NoobieDoobieDo, Dec 22, 2007 IP
  3. TechEvangelist

    TechEvangelist Guest

    Messages:
    919
    Likes Received:
    140
    Best Answers:
    0
    Trophy Points:
    133
    #3
    If you are trying to get PHP to run within a page with an .html extension, add the following to your .htaccess file. This will run all scripts with an .htm or .html extension through the PHP parser.

    AddType application/x-httpd-php .html .htm
    Code (markup):
    Your hosting company has to allow server overrides for this to work.
     
    TechEvangelist, Dec 22, 2007 IP
  4. broadbang

    broadbang Banned

    Messages:
    160
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Problem still not solved .Just for now i had changed my all pages to PHP and they are working fine.
     
    broadbang, Dec 22, 2007 IP
  5. DarkMindZ

    DarkMindZ Guest

    Messages:
    175
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    maybe you can post some code example? explain more?
     
    DarkMindZ, Dec 23, 2007 IP
  6. Vio82

    Vio82 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't understand what mean "parse php page in HTML", actually, you are can't parsing in HTML at all =)
     
    Vio82, Dec 23, 2007 IP
  7. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #7
    You need to actually create a php file then use mod_rewrite to substitute it as a html file.
     
    Kaizoku, Dec 23, 2007 IP