Solved

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

Posted on 2006-12-01
2
176 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
ID: 18058009
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
ID: 18058061
I'm glad that I could help you.  Thank you for the grade, the points and the fun question.

bol
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

809 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