Solved

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

Posted on 2006-12-01
2
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
How to hide contact form only if no validation errors 4 64
How do I speed up this PDO query 4 40
SSL unsecure page mystery 17 46
php non-object 7 27
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…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

734 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