Can I change an existing htm page to php?
-
I started making a website with Dreamweaver, and so far all my pages are with .htm extension. In my future plans I want to put some interactive features on some of the EXISTING pages, that require PHP. ( I already installed XAMPP). The question is, can I change these pages to .php extension from now just to be ready? Is this even possible? And what if I start creating pages from now on with php even if they don't require PHP coding? Sorry, I am really new in this.
-
Answer:
Yes you can change your .html pages to .php if you wish. All you will need to do is make sure your files are stored in the 'htdocs' folder within xampp on your C drive. Just because the page has a .php extension, it doesn't necessarily mean you need PHP code within your page. I too have recently started using .php extensions as opposed to .html and I just use the; <?php include "header.php"; ?> This 'header.php' file includes the header part of my website that I want to include on every page I create, it also keeps the code nice and neat and saves a lot of time too as you don't have to keep editing the code every time you make a change, you only have to make a change to the 'header.php' file and it's done for all of my pages. So yeah, just change the extensions but always be sure to have XAMPP running. Hope this helps.
Lazaros at Yahoo! Answers Visit the source
Other answers
Yes. Rename your html pages to php. What happens is they will be fed to the php processor, which translates html normally. You can have 100% html in a php page and it will render fine. When you are ready, you can add in snippets of php to the pages for some dynamic web events.
Yahoo Jedi
Related Q & A:
- How can I make a dynamic web page in PHP?Best solution by Yahoo! Answers
- How can I change back to the old Yahoo! home page?Best solution by Yahoo! Answers
- How can i change my yahoo page to fit the screen?Best solution by Yahoo! Answers
- How can I change my yahoo page from wide screen to regular?Best solution by Yahoo! Answers
- How can I change my Yahoo! mail page back to English?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.