Solved

Do I need to change web pages to a .php extention

Posted on 2006-12-01
2
173 Views
Last Modified: 2006-12-01
A service I am subscribing to is asking that I insert php script on each page of my web site, this is easy enough.

They give this instruction:

...................................

Copy and Paste one of the code snippets below into every single web document on http://test2.oceanpacificwoodproducts.com.

WARNING: YOUR WEBHOST MUST HAVE PHP ENABLED AND YOUR DOCUMENT MUST USE THE .php EXTENSION TO USE THE PHP CODE SNIPPET.
............................................
My host has PHP enabled.

All my web documents are .htm pages I have 20 pages on my web site.

Question, when they say my document must use the .php extension then do I rename each page from .htm to a .php page?

This is my second web site and first time doing anything with php, I appreciate this is probably a simple question, it is so simple it is hard to find the answer.

thanks
0
Comment
Question by:acejake
  • 2
2 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 50 total points
Comment Utility
acejake,

You will most likely have to change the extension.  The host can confirm this. The server could be set up to process .htm pages too but that isn't usual.  If you can't get a straight answer from the host then change the extension.  Php script should start with <?php and end with ?>.

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 54

Expert Comment

by:b0lsc0tt
Comment Utility
I'm glad that I could help you.  Thank you for the grade, the points and the fun question.

bol
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now