Making an HTML page into a php page
Moderator: General Moderators
-
Redrock_HH
- Forum Newbie
- Posts: 1
- Joined: Thu Dec 30, 2004 2:00 pm
Making an HTML page into a php page
Hiya all ... Here is prolly a simple question .... I done have a completely designed site but i need for my main page to be index.php it is already written in HTML ... how can i change the html page into a working php page?
-
ProfMoriarty
- Forum Newbie
- Posts: 7
- Joined: Wed Dec 29, 2004 5:09 pm
- Location: Juneau, AK
Code: Select all
<?php
echo " allyourhtml ";
?>EDIT: Also, make sure your document is called "index.php", not "index.html"
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
You can also add this line in your Apache configuration:
That way you can use PHP in your HTML pages.
Code: Select all
AddType application/x-httpd-php .html