Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2006-12-01
2
Medium Priority
?
181 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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 …

721 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