Technology, Web & Business Forum

You are here: Technology, Web & Business Forum : Web Development : Design : How do I insert php snippet into file that I am outputting mainly as html?


Welcome to the Technology, Web & Business Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.


Design Talk about web design techniques and ideas in CSS, HTML, etc.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-2008
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default How do I insert php snippet into file that I am outputting mainly as html?

I have a page with a dynamic address such as
http://www.example.com?ID=5

I have written a script to turn the page into a static html page with an address such as this
http://www.example.com/static_page.html

Everything works fine so far. The problem is, I want the html page above to include a line of php script such as this:
<?php include 'counter.php' ?>

I am trying to figure out how to output the above line to the html page so that the line will execute when the html page is loaded, rather than having the line merely print out as text as it does now.

(I have already configured my hosting service so that html pages will be evaluated for php code.)
__________________
Powered by Yahoo! Answers
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 08:01 PM.