Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 07-10-2009, 10:25 AM   #1
Warrior Member
 
Join Date: Jul 2006
Location: , , Malaysia.
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default How to enable PHP script on Frontpage website

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

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
steve883 is offline   Reply With Quote
Old 07-10-2009, 10:45 AM   #2
Warrior Member
 
Join Date: Jul 2009
Posts: 29
Thanks: 1
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to WFChris1 Send a message via Yahoo to WFChris1 Send a message via Skype™ to WFChris1
Default Re: How to enable PHP script on Frontpage website

-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
WFChris1 is offline   Reply With Quote
Old 07-10-2009, 11:17 AM   #3
Freelance Warrior
 
iBBnet's Avatar
 
Join Date: Jul 2009
Location: USA
Posts: 235
Thanks: 1
Thanked 10 Times in 10 Posts
Social Networking View Member's Twitter Profile 
Default Re: How to enable PHP script on Frontpage website

That's a good explanation/breakdown by WFChris1. Did that help?

Bryan
After5PC.net
Freelance Web Development
and Graphic Design Services
iBBnet is offline   Reply With Quote
Old 07-10-2009, 11:43 AM   #4
Senior Warrior Member
War Room Member
 
Steve Diamond's Avatar
 
Join Date: Apr 2006
Location: Tucson, AZ, USA.
Posts: 1,025
Thanks: 120
Thanked 158 Times in 115 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Steve Diamond
Default Re: How to enable PHP script on Frontpage website

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

Executive I.T. consulting for small/medium business
Website development | PHP - MySQL - JavaScript expert programming
Software requirements analysis | Specification writing
Project management | Vendor relationship management
Steve Diamond is offline   Reply With Quote
Old 07-10-2009, 12:42 PM   #5
Warrior Member
 
Join Date: May 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: How to enable PHP script on Frontpage website

Thanks for the explanation. Was util for me too!!

Sofia22 is offline   Reply With Quote
Old 07-11-2009, 03:18 AM   #6
Warrior Member
 
Join Date: Jul 2006
Location: , , Malaysia.
Posts: 28
Thanks: 1
Thanked 1 Time in 1 Post
Default Re: How to enable PHP script on Frontpage website

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.

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
steve883 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
enable, frontpage, php, script, website

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:45 AM.