Solved

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

Posted on 2006-12-01
2
175 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

813 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

12 Experts available now in Live!

Get 1:1 Help Now