Page 1 of 1

insert php output into static html file

Posted: Sat Sep 13, 2008 1:57 am
by vikramsharma
hi guys.
i want to know if there a way to insert php output as a table into static html file.
some sort of include.

php generates-> some table -> now insert this table into static index.html file.


my php code looks like this

Code: Select all

 
<td>
<a href="<?php echo $the_permalink;?>" target="_blank_"><?php echo $blog_title; ?></a>&nbsp;(
<?php echo $blog_date; ?>)&nbsp;:<br>
<?php echo $blog_content; ?>&nbsp; ..... <a href="<?php echo $the_permalink;?>" target="_blank_">read more</a>
</td>
 

Re: insert php output into static html file

Posted: Mon Sep 15, 2008 6:18 am
by Kadanis
can't you just output your html + php variables into a string then write the string to the html file using fwrite()