urgent help please!-updating site!

Discussion in 'HTML & Website Design' started by IanT, Jul 11, 2010.

  1. #1
    Okay I am trying to include some php scripts in an html site, i read somewhere that you can change the .htaccess file to include some lines of code that will allow you to run php on html pages.

    But now I cannot open my site in firefox, it opens up a dialog box asking me to download a page or something!?!? says its now a "application/x-httpd-php" page...


    what did I do wrong and how can I fix it !?!?

    I added :

    AddHandler application/x-httpd-php5 .php
    Code (markup):
    I just want it to go back to normal before I made the changes.... ugh!
     
    IanT, Jul 11, 2010 IP
  2. kleampa

    kleampa Member

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    that mean your hosting doens't support php
     
    kleampa, Jul 11, 2010 IP
  3. anands

    anands Well-Known Member

    Messages:
    436
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #3
    IF you are on a VPS or dedicated server, you need to get system admin support to fix you server.

    If you are on a shared hosting, contact your host.
     
    anands, Jul 11, 2010 IP
  4. IanT

    IanT Well-Known Member

    Messages:
    503
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #4
    Okay It turned out to be something simple... just had to clear my cache... but now the file that Im trying to display isnt working... im trying to make a revolving banner ad show up on my page (using php) but I dont want to convert my pages to html for google ranking reasons etc... the current site is www.smftutorials.com.

    I edited the .htaccess to include these lines:

    RemoveHandler .html .htm
    AddType application/x-httpd-php .php .htm .html
    Code (markup):
    this is the root folder for the testing page:
    www.smftutorials.com/testing


    the main page is named template.html

    the revolving banners arent showing though??? hmmmm what am I doing wrong?
     
    IanT, Jul 11, 2010 IP