How to enable PHP script on Frontpage website

5 replies
I intend to join a site (backlinks.com) to sell some of my webpage for texlink but it need my site which is in HTML to have the PHP enable . The following is the answer given to me on how to accomplish it. The problem is I don't have a clue on how to carry out the process.e.g what and where is my root directory; where and how to I insert the codes, etc. For your information I'm no programmer, I just use the wyswyg Frontpage to create my site. The following is the message received:-

"To accomplish this, create a file named ".htaccess" in your root directory and add the following to it (or append it to the bottom of the file, if it already exists): AddType application/x-httpd-php .html(Note: if you use ".htm" files, replace the ".html" above with ".htm") After completing this step, our PHP code should function on your site. "

I hope someone can tell me the step by step procedure. Thanks in advance
#enable #frontpage #php #script #website
  • Profile picture of the author WFChris1
    -create a file named ".htaccess" in your root directory : Your root directory is the main folder of your site, in other words its the folder that holds your sites information. It holds all the contents of your site, like your index aka Home, & other pages of your site, whatever they may be. Tip: Its usually named after your site.

    The directions are telling you to add a new file inside that directory folder and name it ".htacess"



    add the following to it ..AddType application/x-httpd-php .html : In the new file you just created you will be adding this code


    (Note: if you use ".html" files, replace the ".html" above with ".htm") After completing this step, our PHP code should function on your site. "

    If you save your files and at the end of them it saves as .html, then you must change the end of that code to .htm instead of .html

    simple

    If this has helped you, please dont hesitate to click the thanks button. Hope this simplifies your problem
    {{ DiscussionBoard.errors[965078].message }}
  • Profile picture of the author iBBnet
    That's a good explanation/breakdown by WFChris1. Did that help?
    Signature
    Bryan
    After5PC.net
    Freelance Web Development
    and Graphic Design Services
    {{ DiscussionBoard.errors[965186].message }}
    • Profile picture of the author Steve Diamond
      Two revisions to what WFChris1 posted:
      1. Your root directory is usually named public_html.
      2. There's already a file in your root directory named .htaccess (FrontPage requires it so it must be there). Don't try to create a new one. Edit the existing one and add the new line at the bottom.

      I hope this helps.

      Steve
      Signature
      Mindfulness training & coaching online
      Reduce stress | Stay focused | Keep positive and balanced
      {{ DiscussionBoard.errors[965252].message }}
  • Profile picture of the author Sofia22
    Thanks for the explanation. Was util for me too!!
    {{ DiscussionBoard.errors[965432].message }}
    • Profile picture of the author steve883
      Thanks for all your help.

      I've a few questions related to this issue and hope someone could enlighten me.

      1. If my hoisting server is in Win2003, could I accomplish the task of inserting the PHP scrpit? If yes, is the procedure the same?
      2. If my website is PHP enable, will my website original structure affected? i.e Will my website run the same as before just like when it's in HTML?
      4. I was told by others that once a Frontpage's website is PHP enable, you'll encounter the problems of publishing it if you edit or add a new page into it. It's true?

      Thanks in advance once again.
      Signature

      Cheat-proof English grammar test worksheet that uses a password to mark saving the hassle of supervision and manual marking. Collect your free sample at http://www.autotick.com

      {{ DiscussionBoard.errors[967418].message }}

Trending Topics