PHP in HTML

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a pre existing web page that is strictly written in HTML. I have a
couple of pieces that i have written in PHP that i would like use in the
existing files but i don't want to copy the code into each file. i want to
use them as includes but i can't get it to work. Any have any ideas on PHP
and how to get it to display?
 
You will have to rename all the .htm pages to .php pages for the server PHP engine (if you host has one) to recognize the PHP code
Recommend you use server side includes
(can probably be added thru Search & Replace in all pages / html)
Alternatively you can use Design time FP Include pages

_______________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


| I have a pre existing web page that is strictly written in HTML. I have a
| couple of pieces that i have written in PHP that i would like use in the
| existing files but i don't want to copy the code into each file. i want to
| use them as includes but i can't get it to work. Any have any ideas on PHP
| and how to get it to display?
 
What do you mean by server side includes and how would i do that. My server
is running php by the way.
 
<!--- #INCLUDE FILE = "yourpath/SomePage.php" --->

Rendered by the server

--




| What do you mean by server side includes and how would i do that. My server
| is running php by the way.
 
probably one of the best ways to do this is to alter the mime type.
in other words you can call your php page something.htm and even the .htm
page it's included into can remain .htm/.html

here's an explanation on how to do it. it's easier than it looks. I've
done extensive things with php in FrontPage using this method and it works
great (especially if you're using FrontPage)
http://contentseed.com/help/files/PHP_as_HTM-HTML.pdf
--
Chris Leeds,
Microsoft MVP-FrontPage

Make More Money with Less Work
Let Your Clients Control Their Content With Just A Browser!
http://contentseed.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

php 4
Which PHP IDE do you use? 4
HTML & PHP 3
.PHP Files 3
Navigation Bars and PHP 1
PHP/HTML/FP question 25
trying to link php in html/asp 3
How do I insert an Frontpage hitcounter when using PHP? 2

Back
Top